@types/web 0.0.45 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +185 -51
- package/iterable.d.ts +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.49 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.49.
|
package/index.d.ts
CHANGED
|
@@ -469,6 +469,18 @@ interface FileSystemFlags {
|
|
|
469
469
|
exclusive?: boolean;
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
+
interface FileSystemGetDirectoryOptions {
|
|
473
|
+
create?: boolean;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
interface FileSystemGetFileOptions {
|
|
477
|
+
create?: boolean;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
interface FileSystemRemoveOptions {
|
|
481
|
+
recursive?: boolean;
|
|
482
|
+
}
|
|
483
|
+
|
|
472
484
|
interface FocusEventInit extends UIEventInit {
|
|
473
485
|
relatedTarget?: EventTarget | null;
|
|
474
486
|
}
|
|
@@ -673,6 +685,24 @@ interface KeyframeEffectOptions extends EffectTiming {
|
|
|
673
685
|
pseudoElement?: string | null;
|
|
674
686
|
}
|
|
675
687
|
|
|
688
|
+
interface LockInfo {
|
|
689
|
+
clientId?: string;
|
|
690
|
+
mode?: LockMode;
|
|
691
|
+
name?: string;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
interface LockManagerSnapshot {
|
|
695
|
+
held?: LockInfo[];
|
|
696
|
+
pending?: LockInfo[];
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
interface LockOptions {
|
|
700
|
+
ifAvailable?: boolean;
|
|
701
|
+
mode?: LockMode;
|
|
702
|
+
signal?: AbortSignal;
|
|
703
|
+
steal?: boolean;
|
|
704
|
+
}
|
|
705
|
+
|
|
676
706
|
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
677
707
|
configuration?: MediaDecodingConfiguration;
|
|
678
708
|
}
|
|
@@ -1181,7 +1211,7 @@ interface RTCAnswerOptions extends RTCOfferAnswerOptions {
|
|
|
1181
1211
|
}
|
|
1182
1212
|
|
|
1183
1213
|
interface RTCCertificateExpiration {
|
|
1184
|
-
expires?:
|
|
1214
|
+
expires?: number;
|
|
1185
1215
|
}
|
|
1186
1216
|
|
|
1187
1217
|
interface RTCConfiguration {
|
|
@@ -1630,7 +1660,7 @@ interface StreamPipeOptions {
|
|
|
1630
1660
|
}
|
|
1631
1661
|
|
|
1632
1662
|
interface StructuredSerializeOptions {
|
|
1633
|
-
transfer?:
|
|
1663
|
+
transfer?: Transferable[];
|
|
1634
1664
|
}
|
|
1635
1665
|
|
|
1636
1666
|
interface SubmitEventInit extends EventInit {
|
|
@@ -1806,42 +1836,42 @@ interface ANGLE_instanced_arrays {
|
|
|
1806
1836
|
}
|
|
1807
1837
|
|
|
1808
1838
|
interface ARIAMixin {
|
|
1809
|
-
ariaAtomic: string;
|
|
1810
|
-
ariaAutoComplete: string;
|
|
1811
|
-
ariaBusy: string;
|
|
1812
|
-
ariaChecked: string;
|
|
1813
|
-
ariaColCount: string;
|
|
1814
|
-
ariaColIndex: string;
|
|
1815
|
-
ariaColSpan: string;
|
|
1816
|
-
ariaCurrent: string;
|
|
1817
|
-
ariaDisabled: string;
|
|
1818
|
-
ariaExpanded: string;
|
|
1819
|
-
ariaHasPopup: string;
|
|
1820
|
-
ariaHidden: string;
|
|
1821
|
-
ariaKeyShortcuts: string;
|
|
1822
|
-
ariaLabel: string;
|
|
1823
|
-
ariaLevel: string;
|
|
1824
|
-
ariaLive: string;
|
|
1825
|
-
ariaModal: string;
|
|
1826
|
-
ariaMultiLine: string;
|
|
1827
|
-
ariaMultiSelectable: string;
|
|
1828
|
-
ariaOrientation: string;
|
|
1829
|
-
ariaPlaceholder: string;
|
|
1830
|
-
ariaPosInSet: string;
|
|
1831
|
-
ariaPressed: string;
|
|
1832
|
-
ariaReadOnly: string;
|
|
1833
|
-
ariaRequired: string;
|
|
1834
|
-
ariaRoleDescription: string;
|
|
1835
|
-
ariaRowCount: string;
|
|
1836
|
-
ariaRowIndex: string;
|
|
1837
|
-
ariaRowSpan: string;
|
|
1838
|
-
ariaSelected: string;
|
|
1839
|
-
ariaSetSize: string;
|
|
1840
|
-
ariaSort: string;
|
|
1841
|
-
ariaValueMax: string;
|
|
1842
|
-
ariaValueMin: string;
|
|
1843
|
-
ariaValueNow: string;
|
|
1844
|
-
ariaValueText: string;
|
|
1839
|
+
ariaAtomic: string | null;
|
|
1840
|
+
ariaAutoComplete: string | null;
|
|
1841
|
+
ariaBusy: string | null;
|
|
1842
|
+
ariaChecked: string | null;
|
|
1843
|
+
ariaColCount: string | null;
|
|
1844
|
+
ariaColIndex: string | null;
|
|
1845
|
+
ariaColSpan: string | null;
|
|
1846
|
+
ariaCurrent: string | null;
|
|
1847
|
+
ariaDisabled: string | null;
|
|
1848
|
+
ariaExpanded: string | null;
|
|
1849
|
+
ariaHasPopup: string | null;
|
|
1850
|
+
ariaHidden: string | null;
|
|
1851
|
+
ariaKeyShortcuts: string | null;
|
|
1852
|
+
ariaLabel: string | null;
|
|
1853
|
+
ariaLevel: string | null;
|
|
1854
|
+
ariaLive: string | null;
|
|
1855
|
+
ariaModal: string | null;
|
|
1856
|
+
ariaMultiLine: string | null;
|
|
1857
|
+
ariaMultiSelectable: string | null;
|
|
1858
|
+
ariaOrientation: string | null;
|
|
1859
|
+
ariaPlaceholder: string | null;
|
|
1860
|
+
ariaPosInSet: string | null;
|
|
1861
|
+
ariaPressed: string | null;
|
|
1862
|
+
ariaReadOnly: string | null;
|
|
1863
|
+
ariaRequired: string | null;
|
|
1864
|
+
ariaRoleDescription: string | null;
|
|
1865
|
+
ariaRowCount: string | null;
|
|
1866
|
+
ariaRowIndex: string | null;
|
|
1867
|
+
ariaRowSpan: string | null;
|
|
1868
|
+
ariaSelected: string | null;
|
|
1869
|
+
ariaSetSize: string | null;
|
|
1870
|
+
ariaSort: string | null;
|
|
1871
|
+
ariaValueMax: string | null;
|
|
1872
|
+
ariaValueMin: string | null;
|
|
1873
|
+
ariaValueNow: string | null;
|
|
1874
|
+
ariaValueText: string | null;
|
|
1845
1875
|
}
|
|
1846
1876
|
|
|
1847
1877
|
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
@@ -1849,7 +1879,7 @@ interface AbortController {
|
|
|
1849
1879
|
/** Returns the AbortSignal object associated with this object. */
|
|
1850
1880
|
readonly signal: AbortSignal;
|
|
1851
1881
|
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
|
|
1852
|
-
abort(): void;
|
|
1882
|
+
abort(reason?: any): void;
|
|
1853
1883
|
}
|
|
1854
1884
|
|
|
1855
1885
|
declare var AbortController: {
|
|
@@ -1875,7 +1905,7 @@ interface AbortSignal extends EventTarget {
|
|
|
1875
1905
|
declare var AbortSignal: {
|
|
1876
1906
|
prototype: AbortSignal;
|
|
1877
1907
|
new(): AbortSignal;
|
|
1878
|
-
|
|
1908
|
+
abort(reason?: any): AbortSignal;
|
|
1879
1909
|
};
|
|
1880
1910
|
|
|
1881
1911
|
interface AbstractRange {
|
|
@@ -3233,9 +3263,23 @@ declare var CacheStorage: {
|
|
|
3233
3263
|
new(): CacheStorage;
|
|
3234
3264
|
};
|
|
3235
3265
|
|
|
3266
|
+
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
|
|
3267
|
+
readonly canvas: HTMLCanvasElement;
|
|
3268
|
+
requestFrame(): void;
|
|
3269
|
+
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3270
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3271
|
+
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3272
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
declare var CanvasCaptureMediaStreamTrack: {
|
|
3276
|
+
prototype: CanvasCaptureMediaStreamTrack;
|
|
3277
|
+
new(): CanvasCaptureMediaStreamTrack;
|
|
3278
|
+
};
|
|
3279
|
+
|
|
3236
3280
|
interface CanvasCompositing {
|
|
3237
3281
|
globalAlpha: number;
|
|
3238
|
-
globalCompositeOperation:
|
|
3282
|
+
globalCompositeOperation: GlobalCompositeOperation;
|
|
3239
3283
|
}
|
|
3240
3284
|
|
|
3241
3285
|
interface CanvasDrawImage {
|
|
@@ -3261,6 +3305,7 @@ interface CanvasDrawPath {
|
|
|
3261
3305
|
interface CanvasFillStrokeStyles {
|
|
3262
3306
|
fillStyle: string | CanvasGradient | CanvasPattern;
|
|
3263
3307
|
strokeStyle: string | CanvasGradient | CanvasPattern;
|
|
3308
|
+
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
|
|
3264
3309
|
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
|
3265
3310
|
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
|
|
3266
3311
|
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
|
|
@@ -3584,6 +3629,8 @@ interface Crypto {
|
|
|
3584
3629
|
/** Available only in secure contexts. */
|
|
3585
3630
|
readonly subtle: SubtleCrypto;
|
|
3586
3631
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
3632
|
+
/** Available only in secure contexts. */
|
|
3633
|
+
randomUUID(): string;
|
|
3587
3634
|
}
|
|
3588
3635
|
|
|
3589
3636
|
declare var Crypto: {
|
|
@@ -4290,7 +4337,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4290
4337
|
readonly timeline: DocumentTimeline;
|
|
4291
4338
|
/** Contains the title of the document. */
|
|
4292
4339
|
title: string;
|
|
4293
|
-
readonly visibilityState:
|
|
4340
|
+
readonly visibilityState: DocumentVisibilityState;
|
|
4294
4341
|
/**
|
|
4295
4342
|
* Sets or gets the color of the links that the user has visited.
|
|
4296
4343
|
* @deprecated
|
|
@@ -5075,6 +5122,19 @@ declare var FileSystemDirectoryEntry: {
|
|
|
5075
5122
|
new(): FileSystemDirectoryEntry;
|
|
5076
5123
|
};
|
|
5077
5124
|
|
|
5125
|
+
/** Available only in secure contexts. */
|
|
5126
|
+
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
|
5127
|
+
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
|
5128
|
+
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
|
5129
|
+
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
|
5130
|
+
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
|
|
5131
|
+
}
|
|
5132
|
+
|
|
5133
|
+
declare var FileSystemDirectoryHandle: {
|
|
5134
|
+
prototype: FileSystemDirectoryHandle;
|
|
5135
|
+
new(): FileSystemDirectoryHandle;
|
|
5136
|
+
};
|
|
5137
|
+
|
|
5078
5138
|
interface FileSystemDirectoryReader {
|
|
5079
5139
|
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
|
|
5080
5140
|
}
|
|
@@ -5107,6 +5167,28 @@ declare var FileSystemFileEntry: {
|
|
|
5107
5167
|
new(): FileSystemFileEntry;
|
|
5108
5168
|
};
|
|
5109
5169
|
|
|
5170
|
+
/** Available only in secure contexts. */
|
|
5171
|
+
interface FileSystemFileHandle extends FileSystemHandle {
|
|
5172
|
+
getFile(): Promise<File>;
|
|
5173
|
+
}
|
|
5174
|
+
|
|
5175
|
+
declare var FileSystemFileHandle: {
|
|
5176
|
+
prototype: FileSystemFileHandle;
|
|
5177
|
+
new(): FileSystemFileHandle;
|
|
5178
|
+
};
|
|
5179
|
+
|
|
5180
|
+
/** Available only in secure contexts. */
|
|
5181
|
+
interface FileSystemHandle {
|
|
5182
|
+
readonly kind: FileSystemHandleKind;
|
|
5183
|
+
readonly name: string;
|
|
5184
|
+
isSameEntry(other: FileSystemHandle): Promise<boolean>;
|
|
5185
|
+
}
|
|
5186
|
+
|
|
5187
|
+
declare var FileSystemHandle: {
|
|
5188
|
+
prototype: FileSystemHandle;
|
|
5189
|
+
new(): FileSystemHandle;
|
|
5190
|
+
};
|
|
5191
|
+
|
|
5110
5192
|
/** Focus-related events like focus, blur, focusin, or focusout. */
|
|
5111
5193
|
interface FocusEvent extends UIEvent {
|
|
5112
5194
|
readonly relatedTarget: EventTarget | null;
|
|
@@ -5408,6 +5490,7 @@ interface GlobalEventHandlersEventMap {
|
|
|
5408
5490
|
"select": Event;
|
|
5409
5491
|
"selectionchange": Event;
|
|
5410
5492
|
"selectstart": Event;
|
|
5493
|
+
"slotchange": Event;
|
|
5411
5494
|
"stalled": Event;
|
|
5412
5495
|
"submit": SubmitEvent;
|
|
5413
5496
|
"suspend": Event;
|
|
@@ -5642,6 +5725,7 @@ interface GlobalEventHandlers {
|
|
|
5642
5725
|
* @param ev The event.
|
|
5643
5726
|
*/
|
|
5644
5727
|
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5728
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
5645
5729
|
/**
|
|
5646
5730
|
* Occurs when the seek operation ends.
|
|
5647
5731
|
* @param ev The event.
|
|
@@ -5659,6 +5743,7 @@ interface GlobalEventHandlers {
|
|
|
5659
5743
|
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5660
5744
|
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5661
5745
|
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5746
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5662
5747
|
/**
|
|
5663
5748
|
* Occurs when the download has stopped.
|
|
5664
5749
|
* @param ev The event.
|
|
@@ -6624,7 +6709,8 @@ interface HTMLImageElement extends HTMLElement {
|
|
|
6624
6709
|
hspace: number;
|
|
6625
6710
|
/** Sets or retrieves whether the image is a server-side image map. */
|
|
6626
6711
|
isMap: boolean;
|
|
6627
|
-
loading
|
|
6712
|
+
/** Sets or retrieves the policy for loading image elements that are outside the viewport. */
|
|
6713
|
+
loading: "eager" | "lazy";
|
|
6628
6714
|
/**
|
|
6629
6715
|
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
|
|
6630
6716
|
* @deprecated
|
|
@@ -7082,6 +7168,7 @@ interface HTMLMetaElement extends HTMLElement {
|
|
|
7082
7168
|
content: string;
|
|
7083
7169
|
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
|
|
7084
7170
|
httpEquiv: string;
|
|
7171
|
+
media: string;
|
|
7085
7172
|
/** Sets or retrieves the value specified in the content attribute of the meta object. */
|
|
7086
7173
|
name: string;
|
|
7087
7174
|
/**
|
|
@@ -7601,6 +7688,7 @@ declare var HTMLSlotElement: {
|
|
|
7601
7688
|
|
|
7602
7689
|
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
|
|
7603
7690
|
interface HTMLSourceElement extends HTMLElement {
|
|
7691
|
+
height: number;
|
|
7604
7692
|
/** Gets or sets the intended media type of the media source. */
|
|
7605
7693
|
media: string;
|
|
7606
7694
|
sizes: string;
|
|
@@ -7609,6 +7697,7 @@ interface HTMLSourceElement extends HTMLElement {
|
|
|
7609
7697
|
srcset: string;
|
|
7610
7698
|
/** Gets or sets the MIME type of a media resource. */
|
|
7611
7699
|
type: string;
|
|
7700
|
+
width: number;
|
|
7612
7701
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
7613
7702
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
7614
7703
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -8564,6 +8653,7 @@ interface IDBTransactionEventMap {
|
|
|
8564
8653
|
interface IDBTransaction extends EventTarget {
|
|
8565
8654
|
/** Returns the transaction's connection. */
|
|
8566
8655
|
readonly db: IDBDatabase;
|
|
8656
|
+
readonly durability: IDBTransactionDurability;
|
|
8567
8657
|
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
|
8568
8658
|
readonly error: DOMException | null;
|
|
8569
8659
|
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
|
@@ -8843,6 +8933,29 @@ declare var Location: {
|
|
|
8843
8933
|
new(): Location;
|
|
8844
8934
|
};
|
|
8845
8935
|
|
|
8936
|
+
/** Available only in secure contexts. */
|
|
8937
|
+
interface Lock {
|
|
8938
|
+
readonly mode: LockMode;
|
|
8939
|
+
readonly name: string;
|
|
8940
|
+
}
|
|
8941
|
+
|
|
8942
|
+
declare var Lock: {
|
|
8943
|
+
prototype: Lock;
|
|
8944
|
+
new(): Lock;
|
|
8945
|
+
};
|
|
8946
|
+
|
|
8947
|
+
/** Available only in secure contexts. */
|
|
8948
|
+
interface LockManager {
|
|
8949
|
+
query(): Promise<LockManagerSnapshot>;
|
|
8950
|
+
request(name: string, callback: LockGrantedCallback): Promise<any>;
|
|
8951
|
+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
|
|
8952
|
+
}
|
|
8953
|
+
|
|
8954
|
+
declare var LockManager: {
|
|
8955
|
+
prototype: LockManager;
|
|
8956
|
+
new(): LockManager;
|
|
8957
|
+
};
|
|
8958
|
+
|
|
8846
8959
|
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
8847
8960
|
}
|
|
8848
8961
|
|
|
@@ -10169,6 +10282,7 @@ interface PerformanceEventTiming extends PerformanceEntry {
|
|
|
10169
10282
|
readonly processingEnd: DOMHighResTimeStamp;
|
|
10170
10283
|
readonly processingStart: DOMHighResTimeStamp;
|
|
10171
10284
|
readonly target: Node | null;
|
|
10285
|
+
toJSON(): any;
|
|
10172
10286
|
}
|
|
10173
10287
|
|
|
10174
10288
|
declare var PerformanceEventTiming: {
|
|
@@ -10613,7 +10727,7 @@ declare var PushSubscriptionOptions: {
|
|
|
10613
10727
|
};
|
|
10614
10728
|
|
|
10615
10729
|
interface RTCCertificate {
|
|
10616
|
-
readonly expires:
|
|
10730
|
+
readonly expires: EpochTimeStamp;
|
|
10617
10731
|
getFingerprints(): RTCDtlsFingerprint[];
|
|
10618
10732
|
}
|
|
10619
10733
|
|
|
@@ -10891,6 +11005,7 @@ interface RTCRtpTransceiver {
|
|
|
10891
11005
|
readonly mid: string | null;
|
|
10892
11006
|
readonly receiver: RTCRtpReceiver;
|
|
10893
11007
|
readonly sender: RTCRtpSender;
|
|
11008
|
+
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
|
|
10894
11009
|
stop(): void;
|
|
10895
11010
|
}
|
|
10896
11011
|
|
|
@@ -11105,6 +11220,7 @@ interface ResizeObserverEntry {
|
|
|
11105
11220
|
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11106
11221
|
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11107
11222
|
readonly contentRect: DOMRectReadOnly;
|
|
11223
|
+
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11108
11224
|
readonly target: Element;
|
|
11109
11225
|
}
|
|
11110
11226
|
|
|
@@ -13074,6 +13190,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|
|
13074
13190
|
readonly host: Element;
|
|
13075
13191
|
readonly mode: ShadowRootMode;
|
|
13076
13192
|
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
|
13193
|
+
readonly slotAssignment: SlotAssignmentMode;
|
|
13077
13194
|
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
|
13078
13195
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
13079
13196
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -13371,6 +13488,7 @@ declare var StorageEvent: {
|
|
|
13371
13488
|
/** Available only in secure contexts. */
|
|
13372
13489
|
interface StorageManager {
|
|
13373
13490
|
estimate(): Promise<StorageEstimate>;
|
|
13491
|
+
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
|
13374
13492
|
persist(): Promise<boolean>;
|
|
13375
13493
|
persisted(): Promise<boolean>;
|
|
13376
13494
|
}
|
|
@@ -14132,6 +14250,13 @@ interface WEBGL_lose_context {
|
|
|
14132
14250
|
restoreContext(): void;
|
|
14133
14251
|
}
|
|
14134
14252
|
|
|
14253
|
+
interface WEBGL_multi_draw {
|
|
14254
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
14255
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
|
14256
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
14257
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
14258
|
+
}
|
|
14259
|
+
|
|
14135
14260
|
/** A WaveShaperNode always has exactly one input and one output. */
|
|
14136
14261
|
interface WaveShaperNode extends AudioNode {
|
|
14137
14262
|
curve: Float32Array | null;
|
|
@@ -16297,8 +16422,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
16297
16422
|
readonly performance: Performance;
|
|
16298
16423
|
atob(data: string): string;
|
|
16299
16424
|
btoa(data: string): string;
|
|
16300
|
-
clearInterval(
|
|
16301
|
-
clearTimeout(
|
|
16425
|
+
clearInterval(id?: number): void;
|
|
16426
|
+
clearTimeout(id?: number): void;
|
|
16302
16427
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16303
16428
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16304
16429
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -16792,7 +16917,7 @@ declare namespace WebAssembly {
|
|
|
16792
16917
|
|
|
16793
16918
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
16794
16919
|
type TableKind = "anyfunc" | "externref";
|
|
16795
|
-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
16920
|
+
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
16796
16921
|
type ExportValue = Function | Global | Memory | Table;
|
|
16797
16922
|
type Exports = Record<string, ExportValue>;
|
|
16798
16923
|
type ImportValue = ExportValue | number;
|
|
@@ -16854,6 +16979,10 @@ interface IntersectionObserverCallback {
|
|
|
16854
16979
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
16855
16980
|
}
|
|
16856
16981
|
|
|
16982
|
+
interface LockGrantedCallback {
|
|
16983
|
+
(lock: Lock | null): any;
|
|
16984
|
+
}
|
|
16985
|
+
|
|
16857
16986
|
interface MediaSessionActionHandler {
|
|
16858
16987
|
(details: MediaSessionActionDetails): void;
|
|
16859
16988
|
}
|
|
@@ -17482,6 +17611,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
|
|
|
17482
17611
|
* @param ev The event.
|
|
17483
17612
|
*/
|
|
17484
17613
|
declare var onscroll: ((this: Window, ev: Event) => any) | null;
|
|
17614
|
+
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
17485
17615
|
/**
|
|
17486
17616
|
* Occurs when the seek operation ends.
|
|
17487
17617
|
* @param ev The event.
|
|
@@ -17499,6 +17629,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
|
|
|
17499
17629
|
declare var onselect: ((this: Window, ev: Event) => any) | null;
|
|
17500
17630
|
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
|
|
17501
17631
|
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
|
|
17632
|
+
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
|
|
17502
17633
|
/**
|
|
17503
17634
|
* Occurs when the download has stopped.
|
|
17504
17635
|
* @param ev The event.
|
|
@@ -17572,8 +17703,8 @@ declare var origin: string;
|
|
|
17572
17703
|
declare var performance: Performance;
|
|
17573
17704
|
declare function atob(data: string): string;
|
|
17574
17705
|
declare function btoa(data: string): string;
|
|
17575
|
-
declare function clearInterval(
|
|
17576
|
-
declare function clearTimeout(
|
|
17706
|
+
declare function clearInterval(id?: number): void;
|
|
17707
|
+
declare function clearTimeout(id?: number): void;
|
|
17577
17708
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
17578
17709
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
17579
17710
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -17603,7 +17734,6 @@ type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
|
|
|
17603
17734
|
type ConstrainDouble = number | ConstrainDoubleRange;
|
|
17604
17735
|
type ConstrainULong = number | ConstrainULongRange;
|
|
17605
17736
|
type DOMHighResTimeStamp = number;
|
|
17606
|
-
type DOMTimeStamp = number;
|
|
17607
17737
|
type EpochTimeStamp = number;
|
|
17608
17738
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
17609
17739
|
type Float32List = Float32Array | GLfloat[];
|
|
@@ -17688,17 +17818,21 @@ type DirectionSetting = "" | "lr" | "rl";
|
|
|
17688
17818
|
type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
|
|
17689
17819
|
type DistanceModelType = "exponential" | "inverse" | "linear";
|
|
17690
17820
|
type DocumentReadyState = "complete" | "interactive" | "loading";
|
|
17821
|
+
type DocumentVisibilityState = "hidden" | "visible";
|
|
17691
17822
|
type EndOfStreamError = "decode" | "network";
|
|
17692
17823
|
type EndingType = "native" | "transparent";
|
|
17824
|
+
type FileSystemHandleKind = "directory" | "file";
|
|
17693
17825
|
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
|
|
17694
17826
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
17695
17827
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
17696
17828
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
17697
17829
|
type GamepadHapticActuatorType = "vibration";
|
|
17698
17830
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|
|
17831
|
+
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
|
17699
17832
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
17700
17833
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
17701
17834
|
type IDBRequestReadyState = "done" | "pending";
|
|
17835
|
+
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
|
17702
17836
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
17703
17837
|
type ImageOrientation = "flipY" | "none";
|
|
17704
17838
|
type ImageSmoothingQuality = "high" | "low" | "medium";
|
|
@@ -17707,6 +17841,7 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
|
17707
17841
|
type KeyType = "private" | "public" | "secret";
|
|
17708
17842
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
17709
17843
|
type LineAlignSetting = "center" | "end" | "start";
|
|
17844
|
+
type LockMode = "exclusive" | "shared";
|
|
17710
17845
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
17711
17846
|
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
|
17712
17847
|
type MediaEncodingType = "record" | "webrtc";
|
|
@@ -17788,7 +17923,6 @@ type TouchType = "direct" | "stylus";
|
|
|
17788
17923
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
17789
17924
|
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
|
|
17790
17925
|
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
|
|
17791
|
-
type VisibilityState = "hidden" | "visible";
|
|
17792
17926
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
17793
17927
|
type WorkerType = "classic" | "module";
|
|
17794
17928
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
package/iterable.d.ts
CHANGED
|
@@ -168,6 +168,10 @@ interface PluginArray {
|
|
|
168
168
|
[Symbol.iterator](): IterableIterator<Plugin>;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
interface RTCRtpTransceiver {
|
|
172
|
+
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
|
|
173
|
+
}
|
|
174
|
+
|
|
171
175
|
interface RTCStatsReport extends ReadonlyMap<string, any> {
|
|
172
176
|
}
|
|
173
177
|
|
|
@@ -243,6 +247,13 @@ interface WEBGL_draw_buffers {
|
|
|
243
247
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
244
248
|
}
|
|
245
249
|
|
|
250
|
+
interface WEBGL_multi_draw {
|
|
251
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
252
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
|
|
253
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
254
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
255
|
+
}
|
|
256
|
+
|
|
246
257
|
interface WebGL2RenderingContextBase {
|
|
247
258
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
|
248
259
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|