@types/web 0.0.53 → 0.0.54
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 +211 -10
- 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.54 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.54.
|
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
|
|
|
@@ -4443,6 +4506,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4443
4506
|
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
|
|
4444
4507
|
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
|
|
4445
4508
|
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
|
|
4509
|
+
createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
|
|
4446
4510
|
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
|
|
4447
4511
|
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
|
|
4448
4512
|
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
|
|
@@ -4874,8 +4938,20 @@ interface ElementContentEditable {
|
|
|
4874
4938
|
}
|
|
4875
4939
|
|
|
4876
4940
|
interface ElementInternals extends ARIAMixin {
|
|
4941
|
+
/** Returns the form owner of internals's target element. */
|
|
4942
|
+
readonly form: HTMLFormElement | null;
|
|
4943
|
+
/** Returns a NodeList of all the label elements that internals's target element is associated with. */
|
|
4944
|
+
readonly labels: NodeList;
|
|
4877
4945
|
/** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
|
|
4878
4946
|
readonly shadowRoot: ShadowRoot | null;
|
|
4947
|
+
/** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */
|
|
4948
|
+
readonly willValidate: boolean;
|
|
4949
|
+
/**
|
|
4950
|
+
* Sets both the state and submission value of internals's target element to value.
|
|
4951
|
+
*
|
|
4952
|
+
* If value is null, the element won't participate in form submission.
|
|
4953
|
+
*/
|
|
4954
|
+
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
|
|
4879
4955
|
}
|
|
4880
4956
|
|
|
4881
4957
|
declare var ElementInternals: {
|
|
@@ -8258,8 +8334,10 @@ interface HTMLVideoElement extends HTMLMediaElement {
|
|
|
8258
8334
|
readonly videoWidth: number;
|
|
8259
8335
|
/** Gets or sets the width of the video element. */
|
|
8260
8336
|
width: number;
|
|
8337
|
+
cancelVideoFrameCallback(handle: number): void;
|
|
8261
8338
|
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
|
8262
8339
|
requestPictureInPicture(): Promise<PictureInPictureWindow>;
|
|
8340
|
+
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
|
|
8263
8341
|
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
8264
8342
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
8265
8343
|
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -8766,6 +8844,7 @@ declare var ImageBitmapRenderingContext: {
|
|
|
8766
8844
|
|
|
8767
8845
|
/** 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
8846
|
interface ImageData {
|
|
8847
|
+
readonly colorSpace: PredefinedColorSpace;
|
|
8769
8848
|
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
|
|
8770
8849
|
readonly data: Uint8ClampedArray;
|
|
8771
8850
|
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
@@ -9672,6 +9751,19 @@ declare var NamedNodeMap: {
|
|
|
9672
9751
|
new(): NamedNodeMap;
|
|
9673
9752
|
};
|
|
9674
9753
|
|
|
9754
|
+
/** Available only in secure contexts. */
|
|
9755
|
+
interface NavigationPreloadManager {
|
|
9756
|
+
disable(): Promise<void>;
|
|
9757
|
+
enable(): Promise<void>;
|
|
9758
|
+
getState(): Promise<NavigationPreloadState>;
|
|
9759
|
+
setHeaderValue(value: string): Promise<void>;
|
|
9760
|
+
}
|
|
9761
|
+
|
|
9762
|
+
declare var NavigationPreloadManager: {
|
|
9763
|
+
prototype: NavigationPreloadManager;
|
|
9764
|
+
new(): NavigationPreloadManager;
|
|
9765
|
+
};
|
|
9766
|
+
|
|
9675
9767
|
/** 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
9768
|
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
9677
9769
|
/** Available only in secure contexts. */
|
|
@@ -10798,6 +10890,7 @@ declare var RTCDTMFToneChangeEvent: {
|
|
|
10798
10890
|
interface RTCDataChannelEventMap {
|
|
10799
10891
|
"bufferedamountlow": Event;
|
|
10800
10892
|
"close": Event;
|
|
10893
|
+
"closing": Event;
|
|
10801
10894
|
"error": Event;
|
|
10802
10895
|
"message": MessageEvent;
|
|
10803
10896
|
"open": Event;
|
|
@@ -10814,6 +10907,7 @@ interface RTCDataChannel extends EventTarget {
|
|
|
10814
10907
|
readonly negotiated: boolean;
|
|
10815
10908
|
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10816
10909
|
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10910
|
+
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10817
10911
|
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
10818
10912
|
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
|
|
10819
10913
|
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
@@ -10846,12 +10940,16 @@ declare var RTCDataChannelEvent: {
|
|
|
10846
10940
|
};
|
|
10847
10941
|
|
|
10848
10942
|
interface RTCDtlsTransportEventMap {
|
|
10943
|
+
"error": Event;
|
|
10849
10944
|
"statechange": Event;
|
|
10850
10945
|
}
|
|
10851
10946
|
|
|
10852
10947
|
interface RTCDtlsTransport extends EventTarget {
|
|
10948
|
+
readonly iceTransport: RTCIceTransport;
|
|
10949
|
+
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
|
|
10853
10950
|
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
|
|
10854
10951
|
readonly state: RTCDtlsTransportState;
|
|
10952
|
+
getRemoteCertificates(): ArrayBuffer[];
|
|
10855
10953
|
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10856
10954
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10857
10955
|
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -10863,6 +10961,51 @@ declare var RTCDtlsTransport: {
|
|
|
10863
10961
|
new(): RTCDtlsTransport;
|
|
10864
10962
|
};
|
|
10865
10963
|
|
|
10964
|
+
interface RTCEncodedAudioFrame {
|
|
10965
|
+
data: ArrayBuffer;
|
|
10966
|
+
readonly timestamp: number;
|
|
10967
|
+
getMetadata(): RTCEncodedAudioFrameMetadata;
|
|
10968
|
+
}
|
|
10969
|
+
|
|
10970
|
+
declare var RTCEncodedAudioFrame: {
|
|
10971
|
+
prototype: RTCEncodedAudioFrame;
|
|
10972
|
+
new(): RTCEncodedAudioFrame;
|
|
10973
|
+
};
|
|
10974
|
+
|
|
10975
|
+
interface RTCEncodedVideoFrame {
|
|
10976
|
+
data: ArrayBuffer;
|
|
10977
|
+
readonly timestamp: number;
|
|
10978
|
+
readonly type: RTCEncodedVideoFrameType;
|
|
10979
|
+
getMetadata(): RTCEncodedVideoFrameMetadata;
|
|
10980
|
+
}
|
|
10981
|
+
|
|
10982
|
+
declare var RTCEncodedVideoFrame: {
|
|
10983
|
+
prototype: RTCEncodedVideoFrame;
|
|
10984
|
+
new(): RTCEncodedVideoFrame;
|
|
10985
|
+
};
|
|
10986
|
+
|
|
10987
|
+
interface RTCError extends DOMException {
|
|
10988
|
+
readonly errorDetail: RTCErrorDetailType;
|
|
10989
|
+
readonly receivedAlert: number | null;
|
|
10990
|
+
readonly sctpCauseCode: number | null;
|
|
10991
|
+
readonly sdpLineNumber: number | null;
|
|
10992
|
+
readonly sentAlert: number | null;
|
|
10993
|
+
}
|
|
10994
|
+
|
|
10995
|
+
declare var RTCError: {
|
|
10996
|
+
prototype: RTCError;
|
|
10997
|
+
new(init: RTCErrorInit, message?: string): RTCError;
|
|
10998
|
+
};
|
|
10999
|
+
|
|
11000
|
+
interface RTCErrorEvent extends Event {
|
|
11001
|
+
readonly error: RTCError;
|
|
11002
|
+
}
|
|
11003
|
+
|
|
11004
|
+
declare var RTCErrorEvent: {
|
|
11005
|
+
prototype: RTCErrorEvent;
|
|
11006
|
+
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
|
|
11007
|
+
};
|
|
11008
|
+
|
|
10866
11009
|
/** 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
11010
|
interface RTCIceCandidate {
|
|
10868
11011
|
readonly address: string | null;
|
|
@@ -10887,10 +11030,21 @@ declare var RTCIceCandidate: {
|
|
|
10887
11030
|
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
|
|
10888
11031
|
};
|
|
10889
11032
|
|
|
11033
|
+
interface RTCIceTransportEventMap {
|
|
11034
|
+
"gatheringstatechange": Event;
|
|
11035
|
+
"statechange": Event;
|
|
11036
|
+
}
|
|
11037
|
+
|
|
10890
11038
|
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
|
|
10891
11039
|
interface RTCIceTransport extends EventTarget {
|
|
10892
11040
|
readonly gatheringState: RTCIceGathererState;
|
|
11041
|
+
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
|
|
11042
|
+
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
|
|
10893
11043
|
readonly state: RTCIceTransportState;
|
|
11044
|
+
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11045
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
11046
|
+
removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
11047
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
10894
11048
|
}
|
|
10895
11049
|
|
|
10896
11050
|
declare var RTCIceTransport: {
|
|
@@ -10931,6 +11085,7 @@ interface RTCPeerConnection extends EventTarget {
|
|
|
10931
11085
|
readonly pendingLocalDescription: RTCSessionDescription | null;
|
|
10932
11086
|
readonly pendingRemoteDescription: RTCSessionDescription | null;
|
|
10933
11087
|
readonly remoteDescription: RTCSessionDescription | null;
|
|
11088
|
+
readonly sctp: RTCSctpTransport | null;
|
|
10934
11089
|
readonly signalingState: RTCSignalingState;
|
|
10935
11090
|
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
|
|
10936
11091
|
/** @deprecated */
|
|
@@ -11043,6 +11198,27 @@ declare var RTCRtpTransceiver: {
|
|
|
11043
11198
|
new(): RTCRtpTransceiver;
|
|
11044
11199
|
};
|
|
11045
11200
|
|
|
11201
|
+
interface RTCSctpTransportEventMap {
|
|
11202
|
+
"statechange": Event;
|
|
11203
|
+
}
|
|
11204
|
+
|
|
11205
|
+
interface RTCSctpTransport extends EventTarget {
|
|
11206
|
+
readonly maxChannels: number | null;
|
|
11207
|
+
readonly maxMessageSize: number;
|
|
11208
|
+
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
|
|
11209
|
+
readonly state: RTCSctpTransportState;
|
|
11210
|
+
readonly transport: RTCDtlsTransport;
|
|
11211
|
+
addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11212
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
11213
|
+
removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
11214
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
11215
|
+
}
|
|
11216
|
+
|
|
11217
|
+
declare var RTCSctpTransport: {
|
|
11218
|
+
prototype: RTCSctpTransport;
|
|
11219
|
+
new(): RTCSctpTransport;
|
|
11220
|
+
};
|
|
11221
|
+
|
|
11046
11222
|
/** 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
11223
|
interface RTCSessionDescription {
|
|
11048
11224
|
readonly sdp: string;
|
|
@@ -11231,7 +11407,7 @@ interface Request extends Body {
|
|
|
11231
11407
|
|
|
11232
11408
|
declare var Request: {
|
|
11233
11409
|
prototype: Request;
|
|
11234
|
-
new(input: RequestInfo, init?: RequestInit): Request;
|
|
11410
|
+
new(input: RequestInfo | URL, init?: RequestInit): Request;
|
|
11235
11411
|
};
|
|
11236
11412
|
|
|
11237
11413
|
interface ResizeObserver {
|
|
@@ -14104,6 +14280,19 @@ declare var ValidityState: {
|
|
|
14104
14280
|
new(): ValidityState;
|
|
14105
14281
|
};
|
|
14106
14282
|
|
|
14283
|
+
interface VideoColorSpace {
|
|
14284
|
+
readonly fullRange: boolean | null;
|
|
14285
|
+
readonly matrix: VideoMatrixCoefficients | null;
|
|
14286
|
+
readonly primaries: VideoColorPrimaries | null;
|
|
14287
|
+
readonly transfer: VideoTransferCharacteristics | null;
|
|
14288
|
+
toJSON(): VideoColorSpaceInit;
|
|
14289
|
+
}
|
|
14290
|
+
|
|
14291
|
+
declare var VideoColorSpace: {
|
|
14292
|
+
prototype: VideoColorSpace;
|
|
14293
|
+
new(init?: VideoColorSpaceInit): VideoColorSpace;
|
|
14294
|
+
};
|
|
14295
|
+
|
|
14107
14296
|
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
|
|
14108
14297
|
interface VideoPlaybackQuality {
|
|
14109
14298
|
/** @deprecated */
|
|
@@ -16455,11 +16644,12 @@ interface WindowOrWorkerGlobalScope {
|
|
|
16455
16644
|
clearTimeout(id?: number): void;
|
|
16456
16645
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16457
16646
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
16458
|
-
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
16647
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
16459
16648
|
queueMicrotask(callback: VoidFunction): void;
|
|
16460
16649
|
reportError(e: any): void;
|
|
16461
16650
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
16462
16651
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
16652
|
+
structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
16463
16653
|
}
|
|
16464
16654
|
|
|
16465
16655
|
interface WindowSessionStorage {
|
|
@@ -17104,6 +17294,10 @@ interface UnderlyingSourceStartCallback<R> {
|
|
|
17104
17294
|
(controller: ReadableStreamController<R>): any;
|
|
17105
17295
|
}
|
|
17106
17296
|
|
|
17297
|
+
interface VideoFrameRequestCallback {
|
|
17298
|
+
(now: DOMHighResTimeStamp, metadata: VideoFrameMetadata): void;
|
|
17299
|
+
}
|
|
17300
|
+
|
|
17107
17301
|
interface VoidFunction {
|
|
17108
17302
|
(): void;
|
|
17109
17303
|
}
|
|
@@ -17736,11 +17930,12 @@ declare function clearInterval(id?: number): void;
|
|
|
17736
17930
|
declare function clearTimeout(id?: number): void;
|
|
17737
17931
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
17738
17932
|
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>;
|
|
17933
|
+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
17740
17934
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
17741
17935
|
declare function reportError(e: any): void;
|
|
17742
17936
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
17743
17937
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
17938
|
+
declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
17744
17939
|
declare var sessionStorage: Storage;
|
|
17745
17940
|
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
17746
17941
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -17904,6 +18099,8 @@ type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
|
|
|
17904
18099
|
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
|
|
17905
18100
|
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
|
|
17906
18101
|
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
|
|
18102
|
+
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
|
|
18103
|
+
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
|
|
17907
18104
|
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
|
|
17908
18105
|
type RTCIceComponent = "rtcp" | "rtp";
|
|
17909
18106
|
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
|
|
@@ -17918,6 +18115,7 @@ type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnec
|
|
|
17918
18115
|
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
|
|
17919
18116
|
type RTCRtcpMuxPolicy = "require";
|
|
17920
18117
|
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
|
|
18118
|
+
type RTCSctpTransportState = "closed" | "connected" | "connecting";
|
|
17921
18119
|
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
|
|
17922
18120
|
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
|
|
17923
18121
|
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
|
|
@@ -17951,7 +18149,10 @@ type TextTrackMode = "disabled" | "hidden" | "showing";
|
|
|
17951
18149
|
type TouchType = "direct" | "stylus";
|
|
17952
18150
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
17953
18151
|
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
|
|
18152
|
+
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
|
|
17954
18153
|
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
|
|
18154
|
+
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
|
|
18155
|
+
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
17955
18156
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
17956
18157
|
type WorkerType = "classic" | "module";
|
|
17957
18158
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|