@types/web 0.0.51 → 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 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.51 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.51.
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;
@@ -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;
@@ -2766,6 +2821,7 @@ interface CSSStyleDeclaration {
2766
2821
  columns: string;
2767
2822
  contain: string;
2768
2823
  content: string;
2824
+ contentVisibility: string;
2769
2825
  counterIncrement: string;
2770
2826
  counterReset: string;
2771
2827
  counterSet: string;
@@ -2875,6 +2931,14 @@ interface CSSStyleDeclaration {
2875
2931
  markerMid: string;
2876
2932
  markerStart: string;
2877
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;
2878
2942
  maskType: string;
2879
2943
  maxBlockSize: string;
2880
2944
  maxHeight: string;
@@ -3233,13 +3297,13 @@ declare var CSSTransition: {
3233
3297
  * Available only in secure contexts.
3234
3298
  */
3235
3299
  interface Cache {
3236
- add(request: RequestInfo): Promise<void>;
3300
+ add(request: RequestInfo | URL): Promise<void>;
3237
3301
  addAll(requests: RequestInfo[]): Promise<void>;
3238
- delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
3239
- keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
3240
- match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
3241
- matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
3242
- 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>;
3243
3307
  }
3244
3308
 
3245
3309
  declare var Cache: {
@@ -3255,7 +3319,7 @@ interface CacheStorage {
3255
3319
  delete(cacheName: string): Promise<boolean>;
3256
3320
  has(cacheName: string): Promise<boolean>;
3257
3321
  keys(): Promise<string[]>;
3258
- match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
3322
+ match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
3259
3323
  open(cacheName: string): Promise<Cache>;
3260
3324
  }
3261
3325
 
@@ -4442,6 +4506,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4442
4506
  createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
4443
4507
  createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
4444
4508
  createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
4509
+ createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
4445
4510
  createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
4446
4511
  createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
4447
4512
  createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
@@ -4873,8 +4938,20 @@ interface ElementContentEditable {
4873
4938
  }
4874
4939
 
4875
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;
4876
4945
  /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
4877
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;
4878
4955
  }
4879
4956
 
4880
4957
  declare var ElementInternals: {
@@ -4948,6 +5025,15 @@ declare var Event: {
4948
5025
  readonly NONE: number;
4949
5026
  };
4950
5027
 
5028
+ interface EventCounts {
5029
+ forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
5030
+ }
5031
+
5032
+ declare var EventCounts: {
5033
+ prototype: EventCounts;
5034
+ new(): EventCounts;
5035
+ };
5036
+
4951
5037
  interface EventListener {
4952
5038
  (evt: Event): void;
4953
5039
  }
@@ -6141,14 +6227,29 @@ declare var HTMLDetailsElement: {
6141
6227
  new(): HTMLDetailsElement;
6142
6228
  };
6143
6229
 
6144
- /** @deprecated this is not available in most browsers */
6145
6230
  interface HTMLDialogElement extends HTMLElement {
6231
+ open: boolean;
6232
+ returnValue: string;
6233
+ /**
6234
+ * Closes the dialog element.
6235
+ *
6236
+ * The argument, if provided, provides a return value.
6237
+ */
6238
+ close(returnValue?: string): void;
6239
+ /** Displays the dialog element. */
6240
+ show(): void;
6241
+ showModal(): void;
6146
6242
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
6147
6243
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
6148
6244
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
6149
6245
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
6150
6246
  }
6151
6247
 
6248
+ declare var HTMLDialogElement: {
6249
+ prototype: HTMLDialogElement;
6250
+ new(): HTMLDialogElement;
6251
+ };
6252
+
6152
6253
  /** @deprecated */
6153
6254
  interface HTMLDirectoryElement extends HTMLElement {
6154
6255
  /** @deprecated */
@@ -8233,8 +8334,10 @@ interface HTMLVideoElement extends HTMLMediaElement {
8233
8334
  readonly videoWidth: number;
8234
8335
  /** Gets or sets the width of the video element. */
8235
8336
  width: number;
8337
+ cancelVideoFrameCallback(handle: number): void;
8236
8338
  getVideoPlaybackQuality(): VideoPlaybackQuality;
8237
8339
  requestPictureInPicture(): Promise<PictureInPictureWindow>;
8340
+ requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
8238
8341
  addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
8239
8342
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
8240
8343
  removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -8741,6 +8844,7 @@ declare var ImageBitmapRenderingContext: {
8741
8844
 
8742
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(). */
8743
8846
  interface ImageData {
8847
+ readonly colorSpace: PredefinedColorSpace;
8744
8848
  /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
8745
8849
  readonly data: Uint8ClampedArray;
8746
8850
  /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
@@ -9647,6 +9751,19 @@ declare var NamedNodeMap: {
9647
9751
  new(): NamedNodeMap;
9648
9752
  };
9649
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
+
9650
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. */
9651
9768
  interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
9652
9769
  /** Available only in secure contexts. */
@@ -10238,6 +10355,7 @@ interface PerformanceEventMap {
10238
10355
 
10239
10356
  /** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
10240
10357
  interface Performance extends EventTarget {
10358
+ readonly eventCounts: EventCounts;
10241
10359
  /** @deprecated */
10242
10360
  readonly navigation: PerformanceNavigation;
10243
10361
  onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
@@ -10772,6 +10890,7 @@ declare var RTCDTMFToneChangeEvent: {
10772
10890
  interface RTCDataChannelEventMap {
10773
10891
  "bufferedamountlow": Event;
10774
10892
  "close": Event;
10893
+ "closing": Event;
10775
10894
  "error": Event;
10776
10895
  "message": MessageEvent;
10777
10896
  "open": Event;
@@ -10788,6 +10907,7 @@ interface RTCDataChannel extends EventTarget {
10788
10907
  readonly negotiated: boolean;
10789
10908
  onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
10790
10909
  onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
10910
+ onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
10791
10911
  onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
10792
10912
  onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
10793
10913
  onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
@@ -10820,12 +10940,16 @@ declare var RTCDataChannelEvent: {
10820
10940
  };
10821
10941
 
10822
10942
  interface RTCDtlsTransportEventMap {
10943
+ "error": Event;
10823
10944
  "statechange": Event;
10824
10945
  }
10825
10946
 
10826
10947
  interface RTCDtlsTransport extends EventTarget {
10948
+ readonly iceTransport: RTCIceTransport;
10949
+ onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
10827
10950
  onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
10828
10951
  readonly state: RTCDtlsTransportState;
10952
+ getRemoteCertificates(): ArrayBuffer[];
10829
10953
  addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10830
10954
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10831
10955
  removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -10837,6 +10961,51 @@ declare var RTCDtlsTransport: {
10837
10961
  new(): RTCDtlsTransport;
10838
10962
  };
10839
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
+
10840
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. */
10841
11010
  interface RTCIceCandidate {
10842
11011
  readonly address: string | null;
@@ -10861,10 +11030,21 @@ declare var RTCIceCandidate: {
10861
11030
  new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
10862
11031
  };
10863
11032
 
11033
+ interface RTCIceTransportEventMap {
11034
+ "gatheringstatechange": Event;
11035
+ "statechange": Event;
11036
+ }
11037
+
10864
11038
  /** Provides access to information about the ICE transport layer over which the data is being sent and received. */
10865
11039
  interface RTCIceTransport extends EventTarget {
10866
11040
  readonly gatheringState: RTCIceGathererState;
11041
+ ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
11042
+ onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
10867
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;
10868
11048
  }
10869
11049
 
10870
11050
  declare var RTCIceTransport: {
@@ -10905,6 +11085,7 @@ interface RTCPeerConnection extends EventTarget {
10905
11085
  readonly pendingLocalDescription: RTCSessionDescription | null;
10906
11086
  readonly pendingRemoteDescription: RTCSessionDescription | null;
10907
11087
  readonly remoteDescription: RTCSessionDescription | null;
11088
+ readonly sctp: RTCSctpTransport | null;
10908
11089
  readonly signalingState: RTCSignalingState;
10909
11090
  addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
10910
11091
  /** @deprecated */
@@ -11017,6 +11198,27 @@ declare var RTCRtpTransceiver: {
11017
11198
  new(): RTCRtpTransceiver;
11018
11199
  };
11019
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
+
11020
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. */
11021
11223
  interface RTCSessionDescription {
11022
11224
  readonly sdp: string;
@@ -11205,7 +11407,7 @@ interface Request extends Body {
11205
11407
 
11206
11408
  declare var Request: {
11207
11409
  prototype: Request;
11208
- new(input: RequestInfo, init?: RequestInit): Request;
11410
+ new(input: RequestInfo | URL, init?: RequestInit): Request;
11209
11411
  };
11210
11412
 
11211
11413
  interface ResizeObserver {
@@ -14078,6 +14280,19 @@ declare var ValidityState: {
14078
14280
  new(): ValidityState;
14079
14281
  };
14080
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
+
14081
14296
  /** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
14082
14297
  interface VideoPlaybackQuality {
14083
14298
  /** @deprecated */
@@ -16429,11 +16644,12 @@ interface WindowOrWorkerGlobalScope {
16429
16644
  clearTimeout(id?: number): void;
16430
16645
  createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16431
16646
  createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16432
- fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
16647
+ fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
16433
16648
  queueMicrotask(callback: VoidFunction): void;
16434
16649
  reportError(e: any): void;
16435
16650
  setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
16436
16651
  setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
16652
+ structuredClone(value: any, options?: StructuredSerializeOptions): any;
16437
16653
  }
16438
16654
 
16439
16655
  interface WindowSessionStorage {
@@ -17078,6 +17294,10 @@ interface UnderlyingSourceStartCallback<R> {
17078
17294
  (controller: ReadableStreamController<R>): any;
17079
17295
  }
17080
17296
 
17297
+ interface VideoFrameRequestCallback {
17298
+ (now: DOMHighResTimeStamp, metadata: VideoFrameMetadata): void;
17299
+ }
17300
+
17081
17301
  interface VoidFunction {
17082
17302
  (): void;
17083
17303
  }
@@ -17710,11 +17930,12 @@ declare function clearInterval(id?: number): void;
17710
17930
  declare function clearTimeout(id?: number): void;
17711
17931
  declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
17712
17932
  declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
17713
- declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
17933
+ declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
17714
17934
  declare function queueMicrotask(callback: VoidFunction): void;
17715
17935
  declare function reportError(e: any): void;
17716
17936
  declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
17717
17937
  declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
17938
+ declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
17718
17939
  declare var sessionStorage: Storage;
17719
17940
  declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
17720
17941
  declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -17878,6 +18099,8 @@ type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
17878
18099
  type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
17879
18100
  type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
17880
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";
17881
18104
  type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
17882
18105
  type RTCIceComponent = "rtcp" | "rtp";
17883
18106
  type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
@@ -17892,6 +18115,7 @@ type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnec
17892
18115
  type RTCPriorityType = "high" | "low" | "medium" | "very-low";
17893
18116
  type RTCRtcpMuxPolicy = "require";
17894
18117
  type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
18118
+ type RTCSctpTransportState = "closed" | "connected" | "connecting";
17895
18119
  type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
17896
18120
  type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
17897
18121
  type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
@@ -17925,7 +18149,10 @@ type TextTrackMode = "disabled" | "hidden" | "showing";
17925
18149
  type TouchType = "direct" | "stylus";
17926
18150
  type TransferFunction = "hlg" | "pq" | "srgb";
17927
18151
  type UserVerificationRequirement = "discouraged" | "preferred" | "required";
18152
+ type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
17928
18153
  type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
18154
+ type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
18155
+ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
17929
18156
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
17930
18157
  type WorkerType = "classic" | "module";
17931
18158
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
package/iterable.d.ts CHANGED
@@ -49,6 +49,9 @@ interface DataTransferItemList {
49
49
  [Symbol.iterator](): IterableIterator<DataTransferItem>;
50
50
  }
51
51
 
52
+ interface EventCounts extends ReadonlyMap<string, number> {
53
+ }
54
+
52
55
  interface FileList {
53
56
  [Symbol.iterator](): IterableIterator<File>;
54
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.51",
3
+ "version": "0.0.54",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "MIT",
6
6
  "contributors": [],