@types/web 0.0.46 → 0.0.50
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 +172 -51
- package/iterable.d.ts +4 -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.50 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.50.
|
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
|
-
// abort(): AbortSignal; - To be re-added in the future
|
|
1908
|
+
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
1879
1909
|
};
|
|
1880
1910
|
|
|
1881
1911
|
interface AbstractRange {
|
|
@@ -2936,6 +2966,7 @@ interface CSSStyleDeclaration {
|
|
|
2936
2966
|
scrollSnapAlign: string;
|
|
2937
2967
|
scrollSnapStop: string;
|
|
2938
2968
|
scrollSnapType: string;
|
|
2969
|
+
scrollbarGutter: string;
|
|
2939
2970
|
shapeImageThreshold: string;
|
|
2940
2971
|
shapeMargin: string;
|
|
2941
2972
|
shapeOutside: string;
|
|
@@ -3233,9 +3264,23 @@ declare var CacheStorage: {
|
|
|
3233
3264
|
new(): CacheStorage;
|
|
3234
3265
|
};
|
|
3235
3266
|
|
|
3267
|
+
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
|
|
3268
|
+
readonly canvas: HTMLCanvasElement;
|
|
3269
|
+
requestFrame(): void;
|
|
3270
|
+
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3271
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3272
|
+
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3273
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
declare var CanvasCaptureMediaStreamTrack: {
|
|
3277
|
+
prototype: CanvasCaptureMediaStreamTrack;
|
|
3278
|
+
new(): CanvasCaptureMediaStreamTrack;
|
|
3279
|
+
};
|
|
3280
|
+
|
|
3236
3281
|
interface CanvasCompositing {
|
|
3237
3282
|
globalAlpha: number;
|
|
3238
|
-
globalCompositeOperation:
|
|
3283
|
+
globalCompositeOperation: GlobalCompositeOperation;
|
|
3239
3284
|
}
|
|
3240
3285
|
|
|
3241
3286
|
interface CanvasDrawImage {
|
|
@@ -4293,7 +4338,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4293
4338
|
readonly timeline: DocumentTimeline;
|
|
4294
4339
|
/** Contains the title of the document. */
|
|
4295
4340
|
title: string;
|
|
4296
|
-
readonly visibilityState:
|
|
4341
|
+
readonly visibilityState: DocumentVisibilityState;
|
|
4297
4342
|
/**
|
|
4298
4343
|
* Sets or gets the color of the links that the user has visited.
|
|
4299
4344
|
* @deprecated
|
|
@@ -5078,6 +5123,19 @@ declare var FileSystemDirectoryEntry: {
|
|
|
5078
5123
|
new(): FileSystemDirectoryEntry;
|
|
5079
5124
|
};
|
|
5080
5125
|
|
|
5126
|
+
/** Available only in secure contexts. */
|
|
5127
|
+
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
|
5128
|
+
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
|
5129
|
+
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
|
5130
|
+
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
|
5131
|
+
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
|
|
5132
|
+
}
|
|
5133
|
+
|
|
5134
|
+
declare var FileSystemDirectoryHandle: {
|
|
5135
|
+
prototype: FileSystemDirectoryHandle;
|
|
5136
|
+
new(): FileSystemDirectoryHandle;
|
|
5137
|
+
};
|
|
5138
|
+
|
|
5081
5139
|
interface FileSystemDirectoryReader {
|
|
5082
5140
|
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
|
|
5083
5141
|
}
|
|
@@ -5110,6 +5168,28 @@ declare var FileSystemFileEntry: {
|
|
|
5110
5168
|
new(): FileSystemFileEntry;
|
|
5111
5169
|
};
|
|
5112
5170
|
|
|
5171
|
+
/** Available only in secure contexts. */
|
|
5172
|
+
interface FileSystemFileHandle extends FileSystemHandle {
|
|
5173
|
+
getFile(): Promise<File>;
|
|
5174
|
+
}
|
|
5175
|
+
|
|
5176
|
+
declare var FileSystemFileHandle: {
|
|
5177
|
+
prototype: FileSystemFileHandle;
|
|
5178
|
+
new(): FileSystemFileHandle;
|
|
5179
|
+
};
|
|
5180
|
+
|
|
5181
|
+
/** Available only in secure contexts. */
|
|
5182
|
+
interface FileSystemHandle {
|
|
5183
|
+
readonly kind: FileSystemHandleKind;
|
|
5184
|
+
readonly name: string;
|
|
5185
|
+
isSameEntry(other: FileSystemHandle): Promise<boolean>;
|
|
5186
|
+
}
|
|
5187
|
+
|
|
5188
|
+
declare var FileSystemHandle: {
|
|
5189
|
+
prototype: FileSystemHandle;
|
|
5190
|
+
new(): FileSystemHandle;
|
|
5191
|
+
};
|
|
5192
|
+
|
|
5113
5193
|
/** Focus-related events like focus, blur, focusin, or focusout. */
|
|
5114
5194
|
interface FocusEvent extends UIEvent {
|
|
5115
5195
|
readonly relatedTarget: EventTarget | null;
|
|
@@ -5411,6 +5491,7 @@ interface GlobalEventHandlersEventMap {
|
|
|
5411
5491
|
"select": Event;
|
|
5412
5492
|
"selectionchange": Event;
|
|
5413
5493
|
"selectstart": Event;
|
|
5494
|
+
"slotchange": Event;
|
|
5414
5495
|
"stalled": Event;
|
|
5415
5496
|
"submit": SubmitEvent;
|
|
5416
5497
|
"suspend": Event;
|
|
@@ -5645,6 +5726,7 @@ interface GlobalEventHandlers {
|
|
|
5645
5726
|
* @param ev The event.
|
|
5646
5727
|
*/
|
|
5647
5728
|
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5729
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
5648
5730
|
/**
|
|
5649
5731
|
* Occurs when the seek operation ends.
|
|
5650
5732
|
* @param ev The event.
|
|
@@ -5662,6 +5744,7 @@ interface GlobalEventHandlers {
|
|
|
5662
5744
|
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5663
5745
|
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5664
5746
|
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5747
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5665
5748
|
/**
|
|
5666
5749
|
* Occurs when the download has stopped.
|
|
5667
5750
|
* @param ev The event.
|
|
@@ -6627,7 +6710,8 @@ interface HTMLImageElement extends HTMLElement {
|
|
|
6627
6710
|
hspace: number;
|
|
6628
6711
|
/** Sets or retrieves whether the image is a server-side image map. */
|
|
6629
6712
|
isMap: boolean;
|
|
6630
|
-
loading
|
|
6713
|
+
/** Sets or retrieves the policy for loading image elements that are outside the viewport. */
|
|
6714
|
+
loading: "eager" | "lazy";
|
|
6631
6715
|
/**
|
|
6632
6716
|
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
|
|
6633
6717
|
* @deprecated
|
|
@@ -7085,6 +7169,7 @@ interface HTMLMetaElement extends HTMLElement {
|
|
|
7085
7169
|
content: string;
|
|
7086
7170
|
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
|
|
7087
7171
|
httpEquiv: string;
|
|
7172
|
+
media: string;
|
|
7088
7173
|
/** Sets or retrieves the value specified in the content attribute of the meta object. */
|
|
7089
7174
|
name: string;
|
|
7090
7175
|
/**
|
|
@@ -8849,6 +8934,29 @@ declare var Location: {
|
|
|
8849
8934
|
new(): Location;
|
|
8850
8935
|
};
|
|
8851
8936
|
|
|
8937
|
+
/** Available only in secure contexts. */
|
|
8938
|
+
interface Lock {
|
|
8939
|
+
readonly mode: LockMode;
|
|
8940
|
+
readonly name: string;
|
|
8941
|
+
}
|
|
8942
|
+
|
|
8943
|
+
declare var Lock: {
|
|
8944
|
+
prototype: Lock;
|
|
8945
|
+
new(): Lock;
|
|
8946
|
+
};
|
|
8947
|
+
|
|
8948
|
+
/** Available only in secure contexts. */
|
|
8949
|
+
interface LockManager {
|
|
8950
|
+
query(): Promise<LockManagerSnapshot>;
|
|
8951
|
+
request(name: string, callback: LockGrantedCallback): Promise<any>;
|
|
8952
|
+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
|
|
8953
|
+
}
|
|
8954
|
+
|
|
8955
|
+
declare var LockManager: {
|
|
8956
|
+
prototype: LockManager;
|
|
8957
|
+
new(): LockManager;
|
|
8958
|
+
};
|
|
8959
|
+
|
|
8852
8960
|
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
8853
8961
|
}
|
|
8854
8962
|
|
|
@@ -10175,6 +10283,7 @@ interface PerformanceEventTiming extends PerformanceEntry {
|
|
|
10175
10283
|
readonly processingEnd: DOMHighResTimeStamp;
|
|
10176
10284
|
readonly processingStart: DOMHighResTimeStamp;
|
|
10177
10285
|
readonly target: Node | null;
|
|
10286
|
+
toJSON(): any;
|
|
10178
10287
|
}
|
|
10179
10288
|
|
|
10180
10289
|
declare var PerformanceEventTiming: {
|
|
@@ -10619,7 +10728,7 @@ declare var PushSubscriptionOptions: {
|
|
|
10619
10728
|
};
|
|
10620
10729
|
|
|
10621
10730
|
interface RTCCertificate {
|
|
10622
|
-
readonly expires:
|
|
10731
|
+
readonly expires: EpochTimeStamp;
|
|
10623
10732
|
getFingerprints(): RTCDtlsFingerprint[];
|
|
10624
10733
|
}
|
|
10625
10734
|
|
|
@@ -10897,6 +11006,7 @@ interface RTCRtpTransceiver {
|
|
|
10897
11006
|
readonly mid: string | null;
|
|
10898
11007
|
readonly receiver: RTCRtpReceiver;
|
|
10899
11008
|
readonly sender: RTCRtpSender;
|
|
11009
|
+
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
|
|
10900
11010
|
stop(): void;
|
|
10901
11011
|
}
|
|
10902
11012
|
|
|
@@ -11111,6 +11221,7 @@ interface ResizeObserverEntry {
|
|
|
11111
11221
|
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11112
11222
|
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11113
11223
|
readonly contentRect: DOMRectReadOnly;
|
|
11224
|
+
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11114
11225
|
readonly target: Element;
|
|
11115
11226
|
}
|
|
11116
11227
|
|
|
@@ -13080,6 +13191,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|
|
13080
13191
|
readonly host: Element;
|
|
13081
13192
|
readonly mode: ShadowRootMode;
|
|
13082
13193
|
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
|
13194
|
+
readonly slotAssignment: SlotAssignmentMode;
|
|
13083
13195
|
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
|
13084
13196
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
13085
13197
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -13377,6 +13489,7 @@ declare var StorageEvent: {
|
|
|
13377
13489
|
/** Available only in secure contexts. */
|
|
13378
13490
|
interface StorageManager {
|
|
13379
13491
|
estimate(): Promise<StorageEstimate>;
|
|
13492
|
+
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
|
13380
13493
|
persist(): Promise<boolean>;
|
|
13381
13494
|
persisted(): Promise<boolean>;
|
|
13382
13495
|
}
|
|
@@ -16310,8 +16423,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
16310
16423
|
readonly performance: Performance;
|
|
16311
16424
|
atob(data: string): string;
|
|
16312
16425
|
btoa(data: string): string;
|
|
16313
|
-
clearInterval(
|
|
16314
|
-
clearTimeout(
|
|
16426
|
+
clearInterval(id?: number): void;
|
|
16427
|
+
clearTimeout(id?: number): void;
|
|
16315
16428
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16316
16429
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16317
16430
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -16805,7 +16918,7 @@ declare namespace WebAssembly {
|
|
|
16805
16918
|
|
|
16806
16919
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
16807
16920
|
type TableKind = "anyfunc" | "externref";
|
|
16808
|
-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
16921
|
+
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
16809
16922
|
type ExportValue = Function | Global | Memory | Table;
|
|
16810
16923
|
type Exports = Record<string, ExportValue>;
|
|
16811
16924
|
type ImportValue = ExportValue | number;
|
|
@@ -16867,6 +16980,10 @@ interface IntersectionObserverCallback {
|
|
|
16867
16980
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
16868
16981
|
}
|
|
16869
16982
|
|
|
16983
|
+
interface LockGrantedCallback {
|
|
16984
|
+
(lock: Lock | null): any;
|
|
16985
|
+
}
|
|
16986
|
+
|
|
16870
16987
|
interface MediaSessionActionHandler {
|
|
16871
16988
|
(details: MediaSessionActionDetails): void;
|
|
16872
16989
|
}
|
|
@@ -17495,6 +17612,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
|
|
|
17495
17612
|
* @param ev The event.
|
|
17496
17613
|
*/
|
|
17497
17614
|
declare var onscroll: ((this: Window, ev: Event) => any) | null;
|
|
17615
|
+
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
17498
17616
|
/**
|
|
17499
17617
|
* Occurs when the seek operation ends.
|
|
17500
17618
|
* @param ev The event.
|
|
@@ -17512,6 +17630,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
|
|
|
17512
17630
|
declare var onselect: ((this: Window, ev: Event) => any) | null;
|
|
17513
17631
|
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
|
|
17514
17632
|
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
|
|
17633
|
+
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
|
|
17515
17634
|
/**
|
|
17516
17635
|
* Occurs when the download has stopped.
|
|
17517
17636
|
* @param ev The event.
|
|
@@ -17585,8 +17704,8 @@ declare var origin: string;
|
|
|
17585
17704
|
declare var performance: Performance;
|
|
17586
17705
|
declare function atob(data: string): string;
|
|
17587
17706
|
declare function btoa(data: string): string;
|
|
17588
|
-
declare function clearInterval(
|
|
17589
|
-
declare function clearTimeout(
|
|
17707
|
+
declare function clearInterval(id?: number): void;
|
|
17708
|
+
declare function clearTimeout(id?: number): void;
|
|
17590
17709
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
17591
17710
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
17592
17711
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -17616,7 +17735,6 @@ type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
|
|
|
17616
17735
|
type ConstrainDouble = number | ConstrainDoubleRange;
|
|
17617
17736
|
type ConstrainULong = number | ConstrainULongRange;
|
|
17618
17737
|
type DOMHighResTimeStamp = number;
|
|
17619
|
-
type DOMTimeStamp = number;
|
|
17620
17738
|
type EpochTimeStamp = number;
|
|
17621
17739
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
17622
17740
|
type Float32List = Float32Array | GLfloat[];
|
|
@@ -17701,14 +17819,17 @@ type DirectionSetting = "" | "lr" | "rl";
|
|
|
17701
17819
|
type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
|
|
17702
17820
|
type DistanceModelType = "exponential" | "inverse" | "linear";
|
|
17703
17821
|
type DocumentReadyState = "complete" | "interactive" | "loading";
|
|
17822
|
+
type DocumentVisibilityState = "hidden" | "visible";
|
|
17704
17823
|
type EndOfStreamError = "decode" | "network";
|
|
17705
17824
|
type EndingType = "native" | "transparent";
|
|
17825
|
+
type FileSystemHandleKind = "directory" | "file";
|
|
17706
17826
|
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
|
|
17707
17827
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
17708
17828
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
17709
17829
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
17710
17830
|
type GamepadHapticActuatorType = "vibration";
|
|
17711
17831
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|
|
17832
|
+
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";
|
|
17712
17833
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
17713
17834
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
17714
17835
|
type IDBRequestReadyState = "done" | "pending";
|
|
@@ -17721,6 +17842,7 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
|
17721
17842
|
type KeyType = "private" | "public" | "secret";
|
|
17722
17843
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
17723
17844
|
type LineAlignSetting = "center" | "end" | "start";
|
|
17845
|
+
type LockMode = "exclusive" | "shared";
|
|
17724
17846
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
17725
17847
|
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
|
17726
17848
|
type MediaEncodingType = "record" | "webrtc";
|
|
@@ -17802,7 +17924,6 @@ type TouchType = "direct" | "stylus";
|
|
|
17802
17924
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
17803
17925
|
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
|
|
17804
17926
|
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
|
|
17805
|
-
type VisibilityState = "hidden" | "visible";
|
|
17806
17927
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
17807
17928
|
type WorkerType = "classic" | "module";
|
|
17808
17929
|
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
|
|