@types/web 0.0.53 → 0.0.56
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 +220 -15
- 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.56 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.56.
|
package/index.d.ts
CHANGED
|
@@ -933,6 +933,11 @@ interface MutationObserverInit {
|
|
|
933
933
|
subtree?: boolean;
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
+
interface NavigationPreloadState {
|
|
937
|
+
enabled?: boolean;
|
|
938
|
+
headerValue?: string;
|
|
939
|
+
}
|
|
940
|
+
|
|
936
941
|
interface NotificationAction {
|
|
937
942
|
action: string;
|
|
938
943
|
icon?: string;
|
|
@@ -1245,6 +1250,35 @@ interface RTCDtlsFingerprint {
|
|
|
1245
1250
|
value?: string;
|
|
1246
1251
|
}
|
|
1247
1252
|
|
|
1253
|
+
interface RTCEncodedAudioFrameMetadata {
|
|
1254
|
+
contributingSources?: number[];
|
|
1255
|
+
synchronizationSource?: number;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
interface RTCEncodedVideoFrameMetadata {
|
|
1259
|
+
contributingSources?: number[];
|
|
1260
|
+
dependencies?: number[];
|
|
1261
|
+
frameId?: number;
|
|
1262
|
+
height?: number;
|
|
1263
|
+
spatialIndex?: number;
|
|
1264
|
+
synchronizationSource?: number;
|
|
1265
|
+
temporalIndex?: number;
|
|
1266
|
+
width?: number;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
interface RTCErrorEventInit extends EventInit {
|
|
1270
|
+
error: RTCError;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
interface RTCErrorInit {
|
|
1274
|
+
errorDetail: RTCErrorDetailType;
|
|
1275
|
+
httpRequestStatusCode?: number;
|
|
1276
|
+
receivedAlert?: number;
|
|
1277
|
+
sctpCauseCode?: number;
|
|
1278
|
+
sdpLineNumber?: number;
|
|
1279
|
+
sentAlert?: number;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1248
1282
|
interface RTCIceCandidateInit {
|
|
1249
1283
|
candidate?: string;
|
|
1250
1284
|
sdpMLineIndex?: number | null;
|
|
@@ -1750,6 +1784,13 @@ interface UnderlyingSource<R = any> {
|
|
|
1750
1784
|
type?: undefined;
|
|
1751
1785
|
}
|
|
1752
1786
|
|
|
1787
|
+
interface VideoColorSpaceInit {
|
|
1788
|
+
fullRange?: boolean;
|
|
1789
|
+
matrix?: VideoMatrixCoefficients;
|
|
1790
|
+
primaries?: VideoColorPrimaries;
|
|
1791
|
+
transfer?: VideoTransferCharacteristics;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1753
1794
|
interface VideoConfiguration {
|
|
1754
1795
|
bitrate: number;
|
|
1755
1796
|
colorGamut?: ColorGamut;
|
|
@@ -1762,6 +1803,19 @@ interface VideoConfiguration {
|
|
|
1762
1803
|
width: number;
|
|
1763
1804
|
}
|
|
1764
1805
|
|
|
1806
|
+
interface VideoFrameMetadata {
|
|
1807
|
+
captureTime?: DOMHighResTimeStamp;
|
|
1808
|
+
expectedDisplayTime: DOMHighResTimeStamp;
|
|
1809
|
+
height: number;
|
|
1810
|
+
mediaTime: number;
|
|
1811
|
+
presentationTime: DOMHighResTimeStamp;
|
|
1812
|
+
presentedFrames: number;
|
|
1813
|
+
processingDuration?: number;
|
|
1814
|
+
receiveTime?: DOMHighResTimeStamp;
|
|
1815
|
+
rtpTimestamp?: number;
|
|
1816
|
+
width: number;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1765
1819
|
interface WaveShaperOptions extends AudioNodeOptions {
|
|
1766
1820
|
curve?: number[] | Float32Array;
|
|
1767
1821
|
oversample?: OverSampleType;
|
|
@@ -2751,6 +2805,7 @@ interface CSSStyleDeclaration {
|
|
|
2751
2805
|
clipPath: string;
|
|
2752
2806
|
clipRule: string;
|
|
2753
2807
|
color: string;
|
|
2808
|
+
colorAdjust: string;
|
|
2754
2809
|
colorInterpolation: string;
|
|
2755
2810
|
colorInterpolationFilters: string;
|
|
2756
2811
|
colorScheme: string;
|
|
@@ -2876,6 +2931,14 @@ interface CSSStyleDeclaration {
|
|
|
2876
2931
|
markerMid: string;
|
|
2877
2932
|
markerStart: string;
|
|
2878
2933
|
mask: string;
|
|
2934
|
+
maskClip: string;
|
|
2935
|
+
maskComposite: string;
|
|
2936
|
+
maskImage: string;
|
|
2937
|
+
maskMode: string;
|
|
2938
|
+
maskOrigin: string;
|
|
2939
|
+
maskPosition: string;
|
|
2940
|
+
maskRepeat: string;
|
|
2941
|
+
maskSize: string;
|
|
2879
2942
|
maskType: string;
|
|
2880
2943
|
maxBlockSize: string;
|
|
2881
2944
|
maxHeight: string;
|
|
@@ -3234,13 +3297,13 @@ declare var CSSTransition: {
|
|
|
3234
3297
|
* Available only in secure contexts.
|
|
3235
3298
|
*/
|
|
3236
3299
|
interface Cache {
|
|
3237
|
-
add(request: RequestInfo): Promise<void>;
|
|
3300
|
+
add(request: RequestInfo | URL): Promise<void>;
|
|
3238
3301
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
3239
|
-
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
|
|
3240
|
-
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
3241
|
-
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
3242
|
-
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
|
|
3243
|
-
put(request: RequestInfo, response: Response): Promise<void>;
|
|
3302
|
+
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
|
|
3303
|
+
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
3304
|
+
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
3305
|
+
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
|
|
3306
|
+
put(request: RequestInfo | URL, response: Response): Promise<void>;
|
|
3244
3307
|
}
|
|
3245
3308
|
|
|
3246
3309
|
declare var Cache: {
|
|
@@ -3256,7 +3319,7 @@ interface CacheStorage {
|
|
|
3256
3319
|
delete(cacheName: string): Promise<boolean>;
|
|
3257
3320
|
has(cacheName: string): Promise<boolean>;
|
|
3258
3321
|
keys(): Promise<string[]>;
|
|
3259
|
-
match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
|
|
3322
|
+
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
|
|
3260
3323
|
open(cacheName: string): Promise<Cache>;
|
|
3261
3324
|
}
|
|
3262
3325
|
|
|
@@ -3521,6 +3584,7 @@ declare var ClipboardEvent: {
|
|
|
3521
3584
|
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
|
|
3522
3585
|
};
|
|
3523
3586
|
|
|
3587
|
+
/** Available only in secure contexts. */
|
|
3524
3588
|
interface ClipboardItem {
|
|
3525
3589
|
readonly types: ReadonlyArray<string>;
|
|
3526
3590
|
getType(type: string): Promise<Blob>;
|
|
@@ -3528,7 +3592,7 @@ interface ClipboardItem {
|
|
|
3528
3592
|
|
|
3529
3593
|
declare var ClipboardItem: {
|
|
3530
3594
|
prototype: ClipboardItem;
|
|
3531
|
-
new(items: Record<string,
|
|
3595
|
+
new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
|
|
3532
3596
|
};
|
|
3533
3597
|
|
|
3534
3598
|
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
|
|
@@ -4198,6 +4262,7 @@ declare var DeviceOrientationEvent: {
|
|
|
4198
4262
|
};
|
|
4199
4263
|
|
|
4200
4264
|
interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
4265
|
+
"DOMContentLoaded": Event;
|
|
4201
4266
|
"fullscreenchange": Event;
|
|
4202
4267
|
"fullscreenerror": Event;
|
|
4203
4268
|
"pointerlockchange": Event;
|
|
@@ -4415,6 +4480,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4415
4480
|
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
|
|
4416
4481
|
createEvent(eventInterface: "DragEvent"): DragEvent;
|
|
4417
4482
|
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
|
|
4483
|
+
createEvent(eventInterface: "Event"): Event;
|
|
4484
|
+
createEvent(eventInterface: "Events"): Event;
|
|
4418
4485
|
createEvent(eventInterface: "FocusEvent"): FocusEvent;
|
|
4419
4486
|
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
|
|
4420
4487
|
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
|
|
@@ -4443,6 +4510,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4443
4510
|
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
|
|
4444
4511
|
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
|
|
4445
4512
|
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
|
|
4513
|
+
createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
|
|
4446
4514
|
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
|
|
4447
4515
|
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
|
|
4448
4516
|
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
|
|
@@ -4874,8 +4942,20 @@ interface ElementContentEditable {
|
|
|
4874
4942
|
}
|
|
4875
4943
|
|
|
4876
4944
|
interface ElementInternals extends ARIAMixin {
|
|
4945
|
+
/** Returns the form owner of internals's target element. */
|
|
4946
|
+
readonly form: HTMLFormElement | null;
|
|
4947
|
+
/** Returns a NodeList of all the label elements that internals's target element is associated with. */
|
|
4948
|
+
readonly labels: NodeList;
|
|
4877
4949
|
/** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
|
|
4878
4950
|
readonly shadowRoot: ShadowRoot | null;
|
|
4951
|
+
/** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */
|
|
4952
|
+
readonly willValidate: boolean;
|
|
4953
|
+
/**
|
|
4954
|
+
* Sets both the state and submission value of internals's target element to value.
|
|
4955
|
+
*
|
|
4956
|
+
* If value is null, the element won't participate in form submission.
|
|
4957
|
+
*/
|
|
4958
|
+
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
|
|
4879
4959
|
}
|
|
4880
4960
|
|
|
4881
4961
|
declare var ElementInternals: {
|
|
@@ -8258,8 +8338,10 @@ interface HTMLVideoElement extends HTMLMediaElement {
|
|
|
8258
8338
|
readonly videoWidth: number;
|
|
8259
8339
|
/** Gets or sets the width of the video element. */
|
|
8260
8340
|
width: number;
|
|
8341
|
+
cancelVideoFrameCallback(handle: number): void;
|
|
8261
8342
|
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
|
8262
8343
|
requestPictureInPicture(): Promise<PictureInPictureWindow>;
|
|
8344
|
+
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
|
|
8263
8345
|
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
8264
8346
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
8265
8347
|
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -8766,6 +8848,7 @@ declare var ImageBitmapRenderingContext: {
|
|
|
8766
8848
|
|
|
8767
8849
|
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
|
|
8768
8850
|
interface ImageData {
|
|
8851
|
+
readonly colorSpace: PredefinedColorSpace;
|
|
8769
8852
|
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
|
|
8770
8853
|
readonly data: Uint8ClampedArray;
|
|
8771
8854
|
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
@@ -9672,6 +9755,19 @@ declare var NamedNodeMap: {
|
|
|
9672
9755
|
new(): NamedNodeMap;
|
|
9673
9756
|
};
|
|
9674
9757
|
|
|
9758
|
+
/** Available only in secure contexts. */
|
|
9759
|
+
interface NavigationPreloadManager {
|
|
9760
|
+
disable(): Promise<void>;
|
|
9761
|
+
enable(): Promise<void>;
|
|
9762
|
+
getState(): Promise<NavigationPreloadState>;
|
|
9763
|
+
setHeaderValue(value: string): Promise<void>;
|
|
9764
|
+
}
|
|
9765
|
+
|
|
9766
|
+
declare var NavigationPreloadManager: {
|
|
9767
|
+
prototype: NavigationPreloadManager;
|
|
9768
|
+
new(): NavigationPreloadManager;
|
|
9769
|
+
};
|
|
9770
|
+
|
|
9675
9771
|
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
|
|
9676
9772
|
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
9677
9773
|
/** Available only in secure contexts. */
|
|
@@ -10375,7 +10471,7 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming {
|
|
|
10375
10471
|
readonly loadEventEnd: DOMHighResTimeStamp;
|
|
10376
10472
|
readonly loadEventStart: DOMHighResTimeStamp;
|
|
10377
10473
|
readonly redirectCount: number;
|
|
10378
|
-
readonly type:
|
|
10474
|
+
readonly type: NavigationTimingType;
|
|
10379
10475
|
readonly unloadEventEnd: DOMHighResTimeStamp;
|
|
10380
10476
|
readonly unloadEventStart: DOMHighResTimeStamp;
|
|
10381
10477
|
toJSON(): any;
|
|
@@ -10798,6 +10894,7 @@ declare var RTCDTMFToneChangeEvent: {
|
|
|
10798
10894
|
interface RTCDataChannelEventMap {
|
|
10799
10895
|
"bufferedamountlow": Event;
|
|
10800
10896
|
"close": Event;
|
|
10897
|
+
"closing": Event;
|
|
10801
10898
|
"error": Event;
|
|
10802
10899
|
"message": MessageEvent;
|
|
10803
10900
|
"open": Event;
|
|
@@ -10814,6 +10911,7 @@ interface RTCDataChannel extends EventTarget {
|
|
|
10814
10911
|
readonly negotiated: boolean;
|
|
10815
10912
|
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10816
10913
|
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10914
|
+
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10817
10915
|
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10818
10916
|
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
|
|
10819
10917
|
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
@@ -10846,12 +10944,16 @@ declare var RTCDataChannelEvent: {
|
|
|
10846
10944
|
};
|
|
10847
10945
|
|
|
10848
10946
|
interface RTCDtlsTransportEventMap {
|
|
10947
|
+
"error": Event;
|
|
10849
10948
|
"statechange": Event;
|
|
10850
10949
|
}
|
|
10851
10950
|
|
|
10852
10951
|
interface RTCDtlsTransport extends EventTarget {
|
|
10952
|
+
readonly iceTransport: RTCIceTransport;
|
|
10953
|
+
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
|
|
10853
10954
|
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
|
|
10854
10955
|
readonly state: RTCDtlsTransportState;
|
|
10956
|
+
getRemoteCertificates(): ArrayBuffer[];
|
|
10855
10957
|
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10856
10958
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10857
10959
|
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -10863,6 +10965,51 @@ declare var RTCDtlsTransport: {
|
|
|
10863
10965
|
new(): RTCDtlsTransport;
|
|
10864
10966
|
};
|
|
10865
10967
|
|
|
10968
|
+
interface RTCEncodedAudioFrame {
|
|
10969
|
+
data: ArrayBuffer;
|
|
10970
|
+
readonly timestamp: number;
|
|
10971
|
+
getMetadata(): RTCEncodedAudioFrameMetadata;
|
|
10972
|
+
}
|
|
10973
|
+
|
|
10974
|
+
declare var RTCEncodedAudioFrame: {
|
|
10975
|
+
prototype: RTCEncodedAudioFrame;
|
|
10976
|
+
new(): RTCEncodedAudioFrame;
|
|
10977
|
+
};
|
|
10978
|
+
|
|
10979
|
+
interface RTCEncodedVideoFrame {
|
|
10980
|
+
data: ArrayBuffer;
|
|
10981
|
+
readonly timestamp: number;
|
|
10982
|
+
readonly type: RTCEncodedVideoFrameType;
|
|
10983
|
+
getMetadata(): RTCEncodedVideoFrameMetadata;
|
|
10984
|
+
}
|
|
10985
|
+
|
|
10986
|
+
declare var RTCEncodedVideoFrame: {
|
|
10987
|
+
prototype: RTCEncodedVideoFrame;
|
|
10988
|
+
new(): RTCEncodedVideoFrame;
|
|
10989
|
+
};
|
|
10990
|
+
|
|
10991
|
+
interface RTCError extends DOMException {
|
|
10992
|
+
readonly errorDetail: RTCErrorDetailType;
|
|
10993
|
+
readonly receivedAlert: number | null;
|
|
10994
|
+
readonly sctpCauseCode: number | null;
|
|
10995
|
+
readonly sdpLineNumber: number | null;
|
|
10996
|
+
readonly sentAlert: number | null;
|
|
10997
|
+
}
|
|
10998
|
+
|
|
10999
|
+
declare var RTCError: {
|
|
11000
|
+
prototype: RTCError;
|
|
11001
|
+
new(init: RTCErrorInit, message?: string): RTCError;
|
|
11002
|
+
};
|
|
11003
|
+
|
|
11004
|
+
interface RTCErrorEvent extends Event {
|
|
11005
|
+
readonly error: RTCError;
|
|
11006
|
+
}
|
|
11007
|
+
|
|
11008
|
+
declare var RTCErrorEvent: {
|
|
11009
|
+
prototype: RTCErrorEvent;
|
|
11010
|
+
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
|
|
11011
|
+
};
|
|
11012
|
+
|
|
10866
11013
|
/** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
|
|
10867
11014
|
interface RTCIceCandidate {
|
|
10868
11015
|
readonly address: string | null;
|
|
@@ -10887,10 +11034,21 @@ declare var RTCIceCandidate: {
|
|
|
10887
11034
|
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
|
|
10888
11035
|
};
|
|
10889
11036
|
|
|
11037
|
+
interface RTCIceTransportEventMap {
|
|
11038
|
+
"gatheringstatechange": Event;
|
|
11039
|
+
"statechange": Event;
|
|
11040
|
+
}
|
|
11041
|
+
|
|
10890
11042
|
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
|
|
10891
11043
|
interface RTCIceTransport extends EventTarget {
|
|
10892
11044
|
readonly gatheringState: RTCIceGathererState;
|
|
11045
|
+
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
|
|
11046
|
+
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
|
|
10893
11047
|
readonly state: RTCIceTransportState;
|
|
11048
|
+
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11049
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
11050
|
+
removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
11051
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
10894
11052
|
}
|
|
10895
11053
|
|
|
10896
11054
|
declare var RTCIceTransport: {
|
|
@@ -10931,6 +11089,7 @@ interface RTCPeerConnection extends EventTarget {
|
|
|
10931
11089
|
readonly pendingLocalDescription: RTCSessionDescription | null;
|
|
10932
11090
|
readonly pendingRemoteDescription: RTCSessionDescription | null;
|
|
10933
11091
|
readonly remoteDescription: RTCSessionDescription | null;
|
|
11092
|
+
readonly sctp: RTCSctpTransport | null;
|
|
10934
11093
|
readonly signalingState: RTCSignalingState;
|
|
10935
11094
|
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
|
|
10936
11095
|
/** @deprecated */
|
|
@@ -11043,6 +11202,27 @@ declare var RTCRtpTransceiver: {
|
|
|
11043
11202
|
new(): RTCRtpTransceiver;
|
|
11044
11203
|
};
|
|
11045
11204
|
|
|
11205
|
+
interface RTCSctpTransportEventMap {
|
|
11206
|
+
"statechange": Event;
|
|
11207
|
+
}
|
|
11208
|
+
|
|
11209
|
+
interface RTCSctpTransport extends EventTarget {
|
|
11210
|
+
readonly maxChannels: number | null;
|
|
11211
|
+
readonly maxMessageSize: number;
|
|
11212
|
+
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
|
|
11213
|
+
readonly state: RTCSctpTransportState;
|
|
11214
|
+
readonly transport: RTCDtlsTransport;
|
|
11215
|
+
addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11216
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
11217
|
+
removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
11218
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
11219
|
+
}
|
|
11220
|
+
|
|
11221
|
+
declare var RTCSctpTransport: {
|
|
11222
|
+
prototype: RTCSctpTransport;
|
|
11223
|
+
new(): RTCSctpTransport;
|
|
11224
|
+
};
|
|
11225
|
+
|
|
11046
11226
|
/** One end of a connection—or potential connection—and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
|
|
11047
11227
|
interface RTCSessionDescription {
|
|
11048
11228
|
readonly sdp: string;
|
|
@@ -11231,7 +11411,7 @@ interface Request extends Body {
|
|
|
11231
11411
|
|
|
11232
11412
|
declare var Request: {
|
|
11233
11413
|
prototype: Request;
|
|
11234
|
-
new(input: RequestInfo, init?: RequestInit): Request;
|
|
11414
|
+
new(input: RequestInfo | URL, init?: RequestInit): Request;
|
|
11235
11415
|
};
|
|
11236
11416
|
|
|
11237
11417
|
interface ResizeObserver {
|
|
@@ -14104,6 +14284,19 @@ declare var ValidityState: {
|
|
|
14104
14284
|
new(): ValidityState;
|
|
14105
14285
|
};
|
|
14106
14286
|
|
|
14287
|
+
interface VideoColorSpace {
|
|
14288
|
+
readonly fullRange: boolean | null;
|
|
14289
|
+
readonly matrix: VideoMatrixCoefficients | null;
|
|
14290
|
+
readonly primaries: VideoColorPrimaries | null;
|
|
14291
|
+
readonly transfer: VideoTransferCharacteristics | null;
|
|
14292
|
+
toJSON(): VideoColorSpaceInit;
|
|
14293
|
+
}
|
|
14294
|
+
|
|
14295
|
+
declare var VideoColorSpace: {
|
|
14296
|
+
prototype: VideoColorSpace;
|
|
14297
|
+
new(init?: VideoColorSpaceInit): VideoColorSpace;
|
|
14298
|
+
};
|
|
14299
|
+
|
|
14107
14300
|
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
|
|
14108
14301
|
interface VideoPlaybackQuality {
|
|
14109
14302
|
/** @deprecated */
|
|
@@ -16256,6 +16449,7 @@ declare var WheelEvent: {
|
|
|
16256
16449
|
};
|
|
16257
16450
|
|
|
16258
16451
|
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
|
|
16452
|
+
"DOMContentLoaded": Event;
|
|
16259
16453
|
"devicemotion": DeviceMotionEvent;
|
|
16260
16454
|
"deviceorientation": DeviceOrientationEvent;
|
|
16261
16455
|
"gamepadconnected": GamepadEvent;
|
|
@@ -16455,11 +16649,12 @@ interface WindowOrWorkerGlobalScope {
|
|
|
16455
16649
|
clearTimeout(id?: number): void;
|
|
16456
16650
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16457
16651
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16458
|
-
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
16652
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
16459
16653
|
queueMicrotask(callback: VoidFunction): void;
|
|
16460
16654
|
reportError(e: any): void;
|
|
16461
16655
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
16462
16656
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
16657
|
+
structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
16463
16658
|
}
|
|
16464
16659
|
|
|
16465
16660
|
interface WindowSessionStorage {
|
|
@@ -17104,6 +17299,10 @@ interface UnderlyingSourceStartCallback<R> {
|
|
|
17104
17299
|
(controller: ReadableStreamController<R>): any;
|
|
17105
17300
|
}
|
|
17106
17301
|
|
|
17302
|
+
interface VideoFrameRequestCallback {
|
|
17303
|
+
(now: DOMHighResTimeStamp, metadata: VideoFrameMetadata): void;
|
|
17304
|
+
}
|
|
17305
|
+
|
|
17107
17306
|
interface VoidFunction {
|
|
17108
17307
|
(): void;
|
|
17109
17308
|
}
|
|
@@ -17736,11 +17935,12 @@ declare function clearInterval(id?: number): void;
|
|
|
17736
17935
|
declare function clearTimeout(id?: number): void;
|
|
17737
17936
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
17738
17937
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
17739
|
-
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
17938
|
+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
17740
17939
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
17741
17940
|
declare function reportError(e: any): void;
|
|
17742
17941
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
17743
17942
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
17943
|
+
declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
17744
17944
|
declare var sessionStorage: Storage;
|
|
17745
17945
|
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
17746
17946
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -17755,8 +17955,7 @@ type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
|
17755
17955
|
type COSEAlgorithmIdentifier = number;
|
|
17756
17956
|
type CSSNumberish = number;
|
|
17757
17957
|
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
|
|
17758
|
-
type ClipboardItemData = Promise<
|
|
17759
|
-
type ClipboardItemDataType = string | Blob;
|
|
17958
|
+
type ClipboardItemData = Promise<string | Blob>;
|
|
17760
17959
|
type ClipboardItems = ClipboardItem[];
|
|
17761
17960
|
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
|
|
17762
17961
|
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
|
|
@@ -17882,7 +18081,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
|
|
|
17882
18081
|
type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
|
|
17883
18082
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
17884
18083
|
type MediaStreamTrackState = "ended" | "live";
|
|
17885
|
-
type
|
|
18084
|
+
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
17886
18085
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
17887
18086
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
17888
18087
|
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
|
|
@@ -17904,6 +18103,8 @@ type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
|
|
|
17904
18103
|
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
|
|
17905
18104
|
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
|
|
17906
18105
|
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
|
|
18106
|
+
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
|
|
18107
|
+
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
|
|
17907
18108
|
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
|
|
17908
18109
|
type RTCIceComponent = "rtcp" | "rtp";
|
|
17909
18110
|
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
|
|
@@ -17918,6 +18119,7 @@ type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnec
|
|
|
17918
18119
|
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
|
|
17919
18120
|
type RTCRtcpMuxPolicy = "require";
|
|
17920
18121
|
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
|
|
18122
|
+
type RTCSctpTransportState = "closed" | "connected" | "connecting";
|
|
17921
18123
|
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
|
|
17922
18124
|
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
|
|
17923
18125
|
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
|
|
@@ -17951,7 +18153,10 @@ type TextTrackMode = "disabled" | "hidden" | "showing";
|
|
|
17951
18153
|
type TouchType = "direct" | "stylus";
|
|
17952
18154
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
17953
18155
|
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
|
|
18156
|
+
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
|
|
17954
18157
|
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
|
|
18158
|
+
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
|
|
18159
|
+
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
17955
18160
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
17956
18161
|
type WorkerType = "classic" | "module";
|
|
17957
18162
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|