@types/web 0.0.48 → 0.0.52
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 +100 -2
- package/iterable.d.ts +7 -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.52 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.52.
|
package/index.d.ts
CHANGED
|
@@ -685,6 +685,24 @@ interface KeyframeEffectOptions extends EffectTiming {
|
|
|
685
685
|
pseudoElement?: string | null;
|
|
686
686
|
}
|
|
687
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
|
+
|
|
688
706
|
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
689
707
|
configuration?: MediaDecodingConfiguration;
|
|
690
708
|
}
|
|
@@ -1887,7 +1905,7 @@ interface AbortSignal extends EventTarget {
|
|
|
1887
1905
|
declare var AbortSignal: {
|
|
1888
1906
|
prototype: AbortSignal;
|
|
1889
1907
|
new(): AbortSignal;
|
|
1890
|
-
abort(reason?: any): AbortSignal;
|
|
1908
|
+
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
1891
1909
|
};
|
|
1892
1910
|
|
|
1893
1911
|
interface AbstractRange {
|
|
@@ -2748,6 +2766,7 @@ interface CSSStyleDeclaration {
|
|
|
2748
2766
|
columns: string;
|
|
2749
2767
|
contain: string;
|
|
2750
2768
|
content: string;
|
|
2769
|
+
contentVisibility: string;
|
|
2751
2770
|
counterIncrement: string;
|
|
2752
2771
|
counterReset: string;
|
|
2753
2772
|
counterSet: string;
|
|
@@ -2948,6 +2967,7 @@ interface CSSStyleDeclaration {
|
|
|
2948
2967
|
scrollSnapAlign: string;
|
|
2949
2968
|
scrollSnapStop: string;
|
|
2950
2969
|
scrollSnapType: string;
|
|
2970
|
+
scrollbarGutter: string;
|
|
2951
2971
|
shapeImageThreshold: string;
|
|
2952
2972
|
shapeMargin: string;
|
|
2953
2973
|
shapeOutside: string;
|
|
@@ -3245,6 +3265,20 @@ declare var CacheStorage: {
|
|
|
3245
3265
|
new(): CacheStorage;
|
|
3246
3266
|
};
|
|
3247
3267
|
|
|
3268
|
+
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
|
|
3269
|
+
readonly canvas: HTMLCanvasElement;
|
|
3270
|
+
requestFrame(): void;
|
|
3271
|
+
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3272
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3273
|
+
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3274
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
declare var CanvasCaptureMediaStreamTrack: {
|
|
3278
|
+
prototype: CanvasCaptureMediaStreamTrack;
|
|
3279
|
+
new(): CanvasCaptureMediaStreamTrack;
|
|
3280
|
+
};
|
|
3281
|
+
|
|
3248
3282
|
interface CanvasCompositing {
|
|
3249
3283
|
globalAlpha: number;
|
|
3250
3284
|
globalCompositeOperation: GlobalCompositeOperation;
|
|
@@ -4915,6 +4949,15 @@ declare var Event: {
|
|
|
4915
4949
|
readonly NONE: number;
|
|
4916
4950
|
};
|
|
4917
4951
|
|
|
4952
|
+
interface EventCounts {
|
|
4953
|
+
forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
|
|
4954
|
+
}
|
|
4955
|
+
|
|
4956
|
+
declare var EventCounts: {
|
|
4957
|
+
prototype: EventCounts;
|
|
4958
|
+
new(): EventCounts;
|
|
4959
|
+
};
|
|
4960
|
+
|
|
4918
4961
|
interface EventListener {
|
|
4919
4962
|
(evt: Event): void;
|
|
4920
4963
|
}
|
|
@@ -5092,6 +5135,7 @@ declare var FileSystemDirectoryEntry: {
|
|
|
5092
5135
|
|
|
5093
5136
|
/** Available only in secure contexts. */
|
|
5094
5137
|
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
|
5138
|
+
readonly kind: "directory";
|
|
5095
5139
|
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
|
5096
5140
|
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
|
5097
5141
|
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
|
@@ -5137,6 +5181,7 @@ declare var FileSystemFileEntry: {
|
|
|
5137
5181
|
|
|
5138
5182
|
/** Available only in secure contexts. */
|
|
5139
5183
|
interface FileSystemFileHandle extends FileSystemHandle {
|
|
5184
|
+
readonly kind: "file";
|
|
5140
5185
|
getFile(): Promise<File>;
|
|
5141
5186
|
}
|
|
5142
5187
|
|
|
@@ -5458,6 +5503,7 @@ interface GlobalEventHandlersEventMap {
|
|
|
5458
5503
|
"select": Event;
|
|
5459
5504
|
"selectionchange": Event;
|
|
5460
5505
|
"selectstart": Event;
|
|
5506
|
+
"slotchange": Event;
|
|
5461
5507
|
"stalled": Event;
|
|
5462
5508
|
"submit": SubmitEvent;
|
|
5463
5509
|
"suspend": Event;
|
|
@@ -5692,6 +5738,7 @@ interface GlobalEventHandlers {
|
|
|
5692
5738
|
* @param ev The event.
|
|
5693
5739
|
*/
|
|
5694
5740
|
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5741
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
5695
5742
|
/**
|
|
5696
5743
|
* Occurs when the seek operation ends.
|
|
5697
5744
|
* @param ev The event.
|
|
@@ -5709,6 +5756,7 @@ interface GlobalEventHandlers {
|
|
|
5709
5756
|
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5710
5757
|
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5711
5758
|
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5759
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5712
5760
|
/**
|
|
5713
5761
|
* Occurs when the download has stopped.
|
|
5714
5762
|
* @param ev The event.
|
|
@@ -6103,14 +6151,29 @@ declare var HTMLDetailsElement: {
|
|
|
6103
6151
|
new(): HTMLDetailsElement;
|
|
6104
6152
|
};
|
|
6105
6153
|
|
|
6106
|
-
/** @deprecated this is not available in most browsers */
|
|
6107
6154
|
interface HTMLDialogElement extends HTMLElement {
|
|
6155
|
+
open: boolean;
|
|
6156
|
+
returnValue: string;
|
|
6157
|
+
/**
|
|
6158
|
+
* Closes the dialog element.
|
|
6159
|
+
*
|
|
6160
|
+
* The argument, if provided, provides a return value.
|
|
6161
|
+
*/
|
|
6162
|
+
close(returnValue?: string): void;
|
|
6163
|
+
/** Displays the dialog element. */
|
|
6164
|
+
show(): void;
|
|
6165
|
+
showModal(): void;
|
|
6108
6166
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
6109
6167
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
6110
6168
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
6111
6169
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
6112
6170
|
}
|
|
6113
6171
|
|
|
6172
|
+
declare var HTMLDialogElement: {
|
|
6173
|
+
prototype: HTMLDialogElement;
|
|
6174
|
+
new(): HTMLDialogElement;
|
|
6175
|
+
};
|
|
6176
|
+
|
|
6114
6177
|
/** @deprecated */
|
|
6115
6178
|
interface HTMLDirectoryElement extends HTMLElement {
|
|
6116
6179
|
/** @deprecated */
|
|
@@ -8898,6 +8961,29 @@ declare var Location: {
|
|
|
8898
8961
|
new(): Location;
|
|
8899
8962
|
};
|
|
8900
8963
|
|
|
8964
|
+
/** Available only in secure contexts. */
|
|
8965
|
+
interface Lock {
|
|
8966
|
+
readonly mode: LockMode;
|
|
8967
|
+
readonly name: string;
|
|
8968
|
+
}
|
|
8969
|
+
|
|
8970
|
+
declare var Lock: {
|
|
8971
|
+
prototype: Lock;
|
|
8972
|
+
new(): Lock;
|
|
8973
|
+
};
|
|
8974
|
+
|
|
8975
|
+
/** Available only in secure contexts. */
|
|
8976
|
+
interface LockManager {
|
|
8977
|
+
query(): Promise<LockManagerSnapshot>;
|
|
8978
|
+
request(name: string, callback: LockGrantedCallback): Promise<any>;
|
|
8979
|
+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
|
|
8980
|
+
}
|
|
8981
|
+
|
|
8982
|
+
declare var LockManager: {
|
|
8983
|
+
prototype: LockManager;
|
|
8984
|
+
new(): LockManager;
|
|
8985
|
+
};
|
|
8986
|
+
|
|
8901
8987
|
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
8902
8988
|
}
|
|
8903
8989
|
|
|
@@ -10177,6 +10263,7 @@ interface PerformanceEventMap {
|
|
|
10177
10263
|
|
|
10178
10264
|
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
|
|
10179
10265
|
interface Performance extends EventTarget {
|
|
10266
|
+
readonly eventCounts: EventCounts;
|
|
10180
10267
|
/** @deprecated */
|
|
10181
10268
|
readonly navigation: PerformanceNavigation;
|
|
10182
10269
|
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
|
|
@@ -10224,6 +10311,7 @@ interface PerformanceEventTiming extends PerformanceEntry {
|
|
|
10224
10311
|
readonly processingEnd: DOMHighResTimeStamp;
|
|
10225
10312
|
readonly processingStart: DOMHighResTimeStamp;
|
|
10226
10313
|
readonly target: Node | null;
|
|
10314
|
+
toJSON(): any;
|
|
10227
10315
|
}
|
|
10228
10316
|
|
|
10229
10317
|
declare var PerformanceEventTiming: {
|
|
@@ -10946,6 +11034,7 @@ interface RTCRtpTransceiver {
|
|
|
10946
11034
|
readonly mid: string | null;
|
|
10947
11035
|
readonly receiver: RTCRtpReceiver;
|
|
10948
11036
|
readonly sender: RTCRtpSender;
|
|
11037
|
+
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
|
|
10949
11038
|
stop(): void;
|
|
10950
11039
|
}
|
|
10951
11040
|
|
|
@@ -11160,6 +11249,7 @@ interface ResizeObserverEntry {
|
|
|
11160
11249
|
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11161
11250
|
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11162
11251
|
readonly contentRect: DOMRectReadOnly;
|
|
11252
|
+
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11163
11253
|
readonly target: Element;
|
|
11164
11254
|
}
|
|
11165
11255
|
|
|
@@ -13129,6 +13219,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|
|
13129
13219
|
readonly host: Element;
|
|
13130
13220
|
readonly mode: ShadowRootMode;
|
|
13131
13221
|
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
|
13222
|
+
readonly slotAssignment: SlotAssignmentMode;
|
|
13132
13223
|
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
|
13133
13224
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
13134
13225
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -16917,6 +17008,10 @@ interface IntersectionObserverCallback {
|
|
|
16917
17008
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
16918
17009
|
}
|
|
16919
17010
|
|
|
17011
|
+
interface LockGrantedCallback {
|
|
17012
|
+
(lock: Lock | null): any;
|
|
17013
|
+
}
|
|
17014
|
+
|
|
16920
17015
|
interface MediaSessionActionHandler {
|
|
16921
17016
|
(details: MediaSessionActionDetails): void;
|
|
16922
17017
|
}
|
|
@@ -17545,6 +17640,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
|
|
|
17545
17640
|
* @param ev The event.
|
|
17546
17641
|
*/
|
|
17547
17642
|
declare var onscroll: ((this: Window, ev: Event) => any) | null;
|
|
17643
|
+
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
17548
17644
|
/**
|
|
17549
17645
|
* Occurs when the seek operation ends.
|
|
17550
17646
|
* @param ev The event.
|
|
@@ -17562,6 +17658,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
|
|
|
17562
17658
|
declare var onselect: ((this: Window, ev: Event) => any) | null;
|
|
17563
17659
|
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
|
|
17564
17660
|
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
|
|
17661
|
+
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
|
|
17565
17662
|
/**
|
|
17566
17663
|
* Occurs when the download has stopped.
|
|
17567
17664
|
* @param ev The event.
|
|
@@ -17773,6 +17870,7 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
|
17773
17870
|
type KeyType = "private" | "public" | "secret";
|
|
17774
17871
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
17775
17872
|
type LineAlignSetting = "center" | "end" | "start";
|
|
17873
|
+
type LockMode = "exclusive" | "shared";
|
|
17776
17874
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
17777
17875
|
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
|
17778
17876
|
type MediaEncodingType = "record" | "webrtc";
|
package/iterable.d.ts
CHANGED
|
@@ -49,6 +49,9 @@ interface DataTransferItemList {
|
|
|
49
49
|
[Symbol.iterator](): IterableIterator<DataTransferItem>;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
interface EventCounts extends ReadonlyMap<string, number> {
|
|
53
|
+
}
|
|
54
|
+
|
|
52
55
|
interface FileList {
|
|
53
56
|
[Symbol.iterator](): IterableIterator<File>;
|
|
54
57
|
}
|
|
@@ -168,6 +171,10 @@ interface PluginArray {
|
|
|
168
171
|
[Symbol.iterator](): IterableIterator<Plugin>;
|
|
169
172
|
}
|
|
170
173
|
|
|
174
|
+
interface RTCRtpTransceiver {
|
|
175
|
+
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
|
|
176
|
+
}
|
|
177
|
+
|
|
171
178
|
interface RTCStatsReport extends ReadonlyMap<string, any> {
|
|
172
179
|
}
|
|
173
180
|
|