@types/web 0.0.52 → 0.0.55
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 +216 -11
- 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.55 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.55.
|
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;
|
|
@@ -2391,7 +2445,7 @@ interface Blob {
|
|
|
2391
2445
|
readonly type: string;
|
|
2392
2446
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
2393
2447
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
2394
|
-
stream(): ReadableStream
|
|
2448
|
+
stream(): ReadableStream<Uint8Array>;
|
|
2395
2449
|
text(): Promise<string>;
|
|
2396
2450
|
}
|
|
2397
2451
|
|
|
@@ -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
|
|
|
@@ -4198,6 +4261,7 @@ declare var DeviceOrientationEvent: {
|
|
|
4198
4261
|
};
|
|
4199
4262
|
|
|
4200
4263
|
interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
4264
|
+
"DOMContentLoaded": Event;
|
|
4201
4265
|
"fullscreenchange": Event;
|
|
4202
4266
|
"fullscreenerror": Event;
|
|
4203
4267
|
"pointerlockchange": Event;
|
|
@@ -4415,6 +4479,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4415
4479
|
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
|
|
4416
4480
|
createEvent(eventInterface: "DragEvent"): DragEvent;
|
|
4417
4481
|
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
|
|
4482
|
+
createEvent(eventInterface: "Event"): Event;
|
|
4483
|
+
createEvent(eventInterface: "Events"): Event;
|
|
4418
4484
|
createEvent(eventInterface: "FocusEvent"): FocusEvent;
|
|
4419
4485
|
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
|
|
4420
4486
|
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
|
|
@@ -4443,6 +4509,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4443
4509
|
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
|
|
4444
4510
|
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
|
|
4445
4511
|
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
|
|
4512
|
+
createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
|
|
4446
4513
|
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
|
|
4447
4514
|
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
|
|
4448
4515
|
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
|
|
@@ -4874,8 +4941,20 @@ interface ElementContentEditable {
|
|
|
4874
4941
|
}
|
|
4875
4942
|
|
|
4876
4943
|
interface ElementInternals extends ARIAMixin {
|
|
4944
|
+
/** Returns the form owner of internals's target element. */
|
|
4945
|
+
readonly form: HTMLFormElement | null;
|
|
4946
|
+
/** Returns a NodeList of all the label elements that internals's target element is associated with. */
|
|
4947
|
+
readonly labels: NodeList;
|
|
4877
4948
|
/** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
|
|
4878
4949
|
readonly shadowRoot: ShadowRoot | null;
|
|
4950
|
+
/** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */
|
|
4951
|
+
readonly willValidate: boolean;
|
|
4952
|
+
/**
|
|
4953
|
+
* Sets both the state and submission value of internals's target element to value.
|
|
4954
|
+
*
|
|
4955
|
+
* If value is null, the element won't participate in form submission.
|
|
4956
|
+
*/
|
|
4957
|
+
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
|
|
4879
4958
|
}
|
|
4880
4959
|
|
|
4881
4960
|
declare var ElementInternals: {
|
|
@@ -8258,8 +8337,10 @@ interface HTMLVideoElement extends HTMLMediaElement {
|
|
|
8258
8337
|
readonly videoWidth: number;
|
|
8259
8338
|
/** Gets or sets the width of the video element. */
|
|
8260
8339
|
width: number;
|
|
8340
|
+
cancelVideoFrameCallback(handle: number): void;
|
|
8261
8341
|
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
|
8262
8342
|
requestPictureInPicture(): Promise<PictureInPictureWindow>;
|
|
8343
|
+
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
|
|
8263
8344
|
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
8264
8345
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
8265
8346
|
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -8766,6 +8847,7 @@ declare var ImageBitmapRenderingContext: {
|
|
|
8766
8847
|
|
|
8767
8848
|
/** 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
8849
|
interface ImageData {
|
|
8850
|
+
readonly colorSpace: PredefinedColorSpace;
|
|
8769
8851
|
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
|
|
8770
8852
|
readonly data: Uint8ClampedArray;
|
|
8771
8853
|
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
@@ -9672,6 +9754,19 @@ declare var NamedNodeMap: {
|
|
|
9672
9754
|
new(): NamedNodeMap;
|
|
9673
9755
|
};
|
|
9674
9756
|
|
|
9757
|
+
/** Available only in secure contexts. */
|
|
9758
|
+
interface NavigationPreloadManager {
|
|
9759
|
+
disable(): Promise<void>;
|
|
9760
|
+
enable(): Promise<void>;
|
|
9761
|
+
getState(): Promise<NavigationPreloadState>;
|
|
9762
|
+
setHeaderValue(value: string): Promise<void>;
|
|
9763
|
+
}
|
|
9764
|
+
|
|
9765
|
+
declare var NavigationPreloadManager: {
|
|
9766
|
+
prototype: NavigationPreloadManager;
|
|
9767
|
+
new(): NavigationPreloadManager;
|
|
9768
|
+
};
|
|
9769
|
+
|
|
9675
9770
|
/** 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
9771
|
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
9677
9772
|
/** Available only in secure contexts. */
|
|
@@ -10798,6 +10893,7 @@ declare var RTCDTMFToneChangeEvent: {
|
|
|
10798
10893
|
interface RTCDataChannelEventMap {
|
|
10799
10894
|
"bufferedamountlow": Event;
|
|
10800
10895
|
"close": Event;
|
|
10896
|
+
"closing": Event;
|
|
10801
10897
|
"error": Event;
|
|
10802
10898
|
"message": MessageEvent;
|
|
10803
10899
|
"open": Event;
|
|
@@ -10814,6 +10910,7 @@ interface RTCDataChannel extends EventTarget {
|
|
|
10814
10910
|
readonly negotiated: boolean;
|
|
10815
10911
|
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10816
10912
|
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10913
|
+
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10817
10914
|
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10818
10915
|
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
|
|
10819
10916
|
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
@@ -10846,12 +10943,16 @@ declare var RTCDataChannelEvent: {
|
|
|
10846
10943
|
};
|
|
10847
10944
|
|
|
10848
10945
|
interface RTCDtlsTransportEventMap {
|
|
10946
|
+
"error": Event;
|
|
10849
10947
|
"statechange": Event;
|
|
10850
10948
|
}
|
|
10851
10949
|
|
|
10852
10950
|
interface RTCDtlsTransport extends EventTarget {
|
|
10951
|
+
readonly iceTransport: RTCIceTransport;
|
|
10952
|
+
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
|
|
10853
10953
|
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
|
|
10854
10954
|
readonly state: RTCDtlsTransportState;
|
|
10955
|
+
getRemoteCertificates(): ArrayBuffer[];
|
|
10855
10956
|
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10856
10957
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10857
10958
|
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -10863,6 +10964,51 @@ declare var RTCDtlsTransport: {
|
|
|
10863
10964
|
new(): RTCDtlsTransport;
|
|
10864
10965
|
};
|
|
10865
10966
|
|
|
10967
|
+
interface RTCEncodedAudioFrame {
|
|
10968
|
+
data: ArrayBuffer;
|
|
10969
|
+
readonly timestamp: number;
|
|
10970
|
+
getMetadata(): RTCEncodedAudioFrameMetadata;
|
|
10971
|
+
}
|
|
10972
|
+
|
|
10973
|
+
declare var RTCEncodedAudioFrame: {
|
|
10974
|
+
prototype: RTCEncodedAudioFrame;
|
|
10975
|
+
new(): RTCEncodedAudioFrame;
|
|
10976
|
+
};
|
|
10977
|
+
|
|
10978
|
+
interface RTCEncodedVideoFrame {
|
|
10979
|
+
data: ArrayBuffer;
|
|
10980
|
+
readonly timestamp: number;
|
|
10981
|
+
readonly type: RTCEncodedVideoFrameType;
|
|
10982
|
+
getMetadata(): RTCEncodedVideoFrameMetadata;
|
|
10983
|
+
}
|
|
10984
|
+
|
|
10985
|
+
declare var RTCEncodedVideoFrame: {
|
|
10986
|
+
prototype: RTCEncodedVideoFrame;
|
|
10987
|
+
new(): RTCEncodedVideoFrame;
|
|
10988
|
+
};
|
|
10989
|
+
|
|
10990
|
+
interface RTCError extends DOMException {
|
|
10991
|
+
readonly errorDetail: RTCErrorDetailType;
|
|
10992
|
+
readonly receivedAlert: number | null;
|
|
10993
|
+
readonly sctpCauseCode: number | null;
|
|
10994
|
+
readonly sdpLineNumber: number | null;
|
|
10995
|
+
readonly sentAlert: number | null;
|
|
10996
|
+
}
|
|
10997
|
+
|
|
10998
|
+
declare var RTCError: {
|
|
10999
|
+
prototype: RTCError;
|
|
11000
|
+
new(init: RTCErrorInit, message?: string): RTCError;
|
|
11001
|
+
};
|
|
11002
|
+
|
|
11003
|
+
interface RTCErrorEvent extends Event {
|
|
11004
|
+
readonly error: RTCError;
|
|
11005
|
+
}
|
|
11006
|
+
|
|
11007
|
+
declare var RTCErrorEvent: {
|
|
11008
|
+
prototype: RTCErrorEvent;
|
|
11009
|
+
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
|
|
11010
|
+
};
|
|
11011
|
+
|
|
10866
11012
|
/** 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
11013
|
interface RTCIceCandidate {
|
|
10868
11014
|
readonly address: string | null;
|
|
@@ -10887,10 +11033,21 @@ declare var RTCIceCandidate: {
|
|
|
10887
11033
|
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
|
|
10888
11034
|
};
|
|
10889
11035
|
|
|
11036
|
+
interface RTCIceTransportEventMap {
|
|
11037
|
+
"gatheringstatechange": Event;
|
|
11038
|
+
"statechange": Event;
|
|
11039
|
+
}
|
|
11040
|
+
|
|
10890
11041
|
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
|
|
10891
11042
|
interface RTCIceTransport extends EventTarget {
|
|
10892
11043
|
readonly gatheringState: RTCIceGathererState;
|
|
11044
|
+
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
|
|
11045
|
+
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
|
|
10893
11046
|
readonly state: RTCIceTransportState;
|
|
11047
|
+
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11048
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
11049
|
+
removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
11050
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
10894
11051
|
}
|
|
10895
11052
|
|
|
10896
11053
|
declare var RTCIceTransport: {
|
|
@@ -10931,6 +11088,7 @@ interface RTCPeerConnection extends EventTarget {
|
|
|
10931
11088
|
readonly pendingLocalDescription: RTCSessionDescription | null;
|
|
10932
11089
|
readonly pendingRemoteDescription: RTCSessionDescription | null;
|
|
10933
11090
|
readonly remoteDescription: RTCSessionDescription | null;
|
|
11091
|
+
readonly sctp: RTCSctpTransport | null;
|
|
10934
11092
|
readonly signalingState: RTCSignalingState;
|
|
10935
11093
|
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
|
|
10936
11094
|
/** @deprecated */
|
|
@@ -11043,6 +11201,27 @@ declare var RTCRtpTransceiver: {
|
|
|
11043
11201
|
new(): RTCRtpTransceiver;
|
|
11044
11202
|
};
|
|
11045
11203
|
|
|
11204
|
+
interface RTCSctpTransportEventMap {
|
|
11205
|
+
"statechange": Event;
|
|
11206
|
+
}
|
|
11207
|
+
|
|
11208
|
+
interface RTCSctpTransport extends EventTarget {
|
|
11209
|
+
readonly maxChannels: number | null;
|
|
11210
|
+
readonly maxMessageSize: number;
|
|
11211
|
+
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
|
|
11212
|
+
readonly state: RTCSctpTransportState;
|
|
11213
|
+
readonly transport: RTCDtlsTransport;
|
|
11214
|
+
addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11215
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
11216
|
+
removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
11217
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
11218
|
+
}
|
|
11219
|
+
|
|
11220
|
+
declare var RTCSctpTransport: {
|
|
11221
|
+
prototype: RTCSctpTransport;
|
|
11222
|
+
new(): RTCSctpTransport;
|
|
11223
|
+
};
|
|
11224
|
+
|
|
11046
11225
|
/** 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
11226
|
interface RTCSessionDescription {
|
|
11048
11227
|
readonly sdp: string;
|
|
@@ -11231,7 +11410,7 @@ interface Request extends Body {
|
|
|
11231
11410
|
|
|
11232
11411
|
declare var Request: {
|
|
11233
11412
|
prototype: Request;
|
|
11234
|
-
new(input: RequestInfo, init?: RequestInit): Request;
|
|
11413
|
+
new(input: RequestInfo | URL, init?: RequestInit): Request;
|
|
11235
11414
|
};
|
|
11236
11415
|
|
|
11237
11416
|
interface ResizeObserver {
|
|
@@ -14104,6 +14283,19 @@ declare var ValidityState: {
|
|
|
14104
14283
|
new(): ValidityState;
|
|
14105
14284
|
};
|
|
14106
14285
|
|
|
14286
|
+
interface VideoColorSpace {
|
|
14287
|
+
readonly fullRange: boolean | null;
|
|
14288
|
+
readonly matrix: VideoMatrixCoefficients | null;
|
|
14289
|
+
readonly primaries: VideoColorPrimaries | null;
|
|
14290
|
+
readonly transfer: VideoTransferCharacteristics | null;
|
|
14291
|
+
toJSON(): VideoColorSpaceInit;
|
|
14292
|
+
}
|
|
14293
|
+
|
|
14294
|
+
declare var VideoColorSpace: {
|
|
14295
|
+
prototype: VideoColorSpace;
|
|
14296
|
+
new(init?: VideoColorSpaceInit): VideoColorSpace;
|
|
14297
|
+
};
|
|
14298
|
+
|
|
14107
14299
|
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
|
|
14108
14300
|
interface VideoPlaybackQuality {
|
|
14109
14301
|
/** @deprecated */
|
|
@@ -16256,6 +16448,7 @@ declare var WheelEvent: {
|
|
|
16256
16448
|
};
|
|
16257
16449
|
|
|
16258
16450
|
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
|
|
16451
|
+
"DOMContentLoaded": Event;
|
|
16259
16452
|
"devicemotion": DeviceMotionEvent;
|
|
16260
16453
|
"deviceorientation": DeviceOrientationEvent;
|
|
16261
16454
|
"gamepadconnected": GamepadEvent;
|
|
@@ -16455,11 +16648,12 @@ interface WindowOrWorkerGlobalScope {
|
|
|
16455
16648
|
clearTimeout(id?: number): void;
|
|
16456
16649
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16457
16650
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16458
|
-
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
16651
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
16459
16652
|
queueMicrotask(callback: VoidFunction): void;
|
|
16460
16653
|
reportError(e: any): void;
|
|
16461
16654
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
16462
16655
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
16656
|
+
structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
16463
16657
|
}
|
|
16464
16658
|
|
|
16465
16659
|
interface WindowSessionStorage {
|
|
@@ -17104,6 +17298,10 @@ interface UnderlyingSourceStartCallback<R> {
|
|
|
17104
17298
|
(controller: ReadableStreamController<R>): any;
|
|
17105
17299
|
}
|
|
17106
17300
|
|
|
17301
|
+
interface VideoFrameRequestCallback {
|
|
17302
|
+
(now: DOMHighResTimeStamp, metadata: VideoFrameMetadata): void;
|
|
17303
|
+
}
|
|
17304
|
+
|
|
17107
17305
|
interface VoidFunction {
|
|
17108
17306
|
(): void;
|
|
17109
17307
|
}
|
|
@@ -17736,11 +17934,12 @@ declare function clearInterval(id?: number): void;
|
|
|
17736
17934
|
declare function clearTimeout(id?: number): void;
|
|
17737
17935
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
17738
17936
|
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>;
|
|
17937
|
+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
17740
17938
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
17741
17939
|
declare function reportError(e: any): void;
|
|
17742
17940
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
17743
17941
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
17942
|
+
declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
17744
17943
|
declare var sessionStorage: Storage;
|
|
17745
17944
|
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
17746
17945
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -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";
|