@types/web 0.0.48 → 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 +69 -0
- 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.49 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.49.
|
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
|
}
|
|
@@ -3245,6 +3263,20 @@ declare var CacheStorage: {
|
|
|
3245
3263
|
new(): CacheStorage;
|
|
3246
3264
|
};
|
|
3247
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
|
+
|
|
3248
3280
|
interface CanvasCompositing {
|
|
3249
3281
|
globalAlpha: number;
|
|
3250
3282
|
globalCompositeOperation: GlobalCompositeOperation;
|
|
@@ -5458,6 +5490,7 @@ interface GlobalEventHandlersEventMap {
|
|
|
5458
5490
|
"select": Event;
|
|
5459
5491
|
"selectionchange": Event;
|
|
5460
5492
|
"selectstart": Event;
|
|
5493
|
+
"slotchange": Event;
|
|
5461
5494
|
"stalled": Event;
|
|
5462
5495
|
"submit": SubmitEvent;
|
|
5463
5496
|
"suspend": Event;
|
|
@@ -5692,6 +5725,7 @@ interface GlobalEventHandlers {
|
|
|
5692
5725
|
* @param ev The event.
|
|
5693
5726
|
*/
|
|
5694
5727
|
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5728
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
5695
5729
|
/**
|
|
5696
5730
|
* Occurs when the seek operation ends.
|
|
5697
5731
|
* @param ev The event.
|
|
@@ -5709,6 +5743,7 @@ interface GlobalEventHandlers {
|
|
|
5709
5743
|
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5710
5744
|
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5711
5745
|
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5746
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5712
5747
|
/**
|
|
5713
5748
|
* Occurs when the download has stopped.
|
|
5714
5749
|
* @param ev The event.
|
|
@@ -8898,6 +8933,29 @@ declare var Location: {
|
|
|
8898
8933
|
new(): Location;
|
|
8899
8934
|
};
|
|
8900
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
|
+
|
|
8901
8959
|
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
8902
8960
|
}
|
|
8903
8961
|
|
|
@@ -10224,6 +10282,7 @@ interface PerformanceEventTiming extends PerformanceEntry {
|
|
|
10224
10282
|
readonly processingEnd: DOMHighResTimeStamp;
|
|
10225
10283
|
readonly processingStart: DOMHighResTimeStamp;
|
|
10226
10284
|
readonly target: Node | null;
|
|
10285
|
+
toJSON(): any;
|
|
10227
10286
|
}
|
|
10228
10287
|
|
|
10229
10288
|
declare var PerformanceEventTiming: {
|
|
@@ -10946,6 +11005,7 @@ interface RTCRtpTransceiver {
|
|
|
10946
11005
|
readonly mid: string | null;
|
|
10947
11006
|
readonly receiver: RTCRtpReceiver;
|
|
10948
11007
|
readonly sender: RTCRtpSender;
|
|
11008
|
+
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
|
|
10949
11009
|
stop(): void;
|
|
10950
11010
|
}
|
|
10951
11011
|
|
|
@@ -11160,6 +11220,7 @@ interface ResizeObserverEntry {
|
|
|
11160
11220
|
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11161
11221
|
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11162
11222
|
readonly contentRect: DOMRectReadOnly;
|
|
11223
|
+
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
|
|
11163
11224
|
readonly target: Element;
|
|
11164
11225
|
}
|
|
11165
11226
|
|
|
@@ -13129,6 +13190,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|
|
13129
13190
|
readonly host: Element;
|
|
13130
13191
|
readonly mode: ShadowRootMode;
|
|
13131
13192
|
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
|
13193
|
+
readonly slotAssignment: SlotAssignmentMode;
|
|
13132
13194
|
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
|
13133
13195
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
13134
13196
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -16917,6 +16979,10 @@ interface IntersectionObserverCallback {
|
|
|
16917
16979
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
16918
16980
|
}
|
|
16919
16981
|
|
|
16982
|
+
interface LockGrantedCallback {
|
|
16983
|
+
(lock: Lock | null): any;
|
|
16984
|
+
}
|
|
16985
|
+
|
|
16920
16986
|
interface MediaSessionActionHandler {
|
|
16921
16987
|
(details: MediaSessionActionDetails): void;
|
|
16922
16988
|
}
|
|
@@ -17545,6 +17611,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
|
|
|
17545
17611
|
* @param ev The event.
|
|
17546
17612
|
*/
|
|
17547
17613
|
declare var onscroll: ((this: Window, ev: Event) => any) | null;
|
|
17614
|
+
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
17548
17615
|
/**
|
|
17549
17616
|
* Occurs when the seek operation ends.
|
|
17550
17617
|
* @param ev The event.
|
|
@@ -17562,6 +17629,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
|
|
|
17562
17629
|
declare var onselect: ((this: Window, ev: Event) => any) | null;
|
|
17563
17630
|
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
|
|
17564
17631
|
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
|
|
17632
|
+
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
|
|
17565
17633
|
/**
|
|
17566
17634
|
* Occurs when the download has stopped.
|
|
17567
17635
|
* @param ev The event.
|
|
@@ -17773,6 +17841,7 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
|
17773
17841
|
type KeyType = "private" | "public" | "secret";
|
|
17774
17842
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
17775
17843
|
type LineAlignSetting = "center" | "end" | "start";
|
|
17844
|
+
type LockMode = "exclusive" | "shared";
|
|
17776
17845
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
17777
17846
|
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
|
17778
17847
|
type MediaEncodingType = "record" | "webrtc";
|
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
|
|