@types/web 0.0.148 → 0.0.150

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +80 -16
  3. 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.148 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.148.
50
+ You can read what changed in version 0.0.150 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.150.
package/index.d.ts CHANGED
@@ -580,6 +580,11 @@ interface GetAnimationsOptions {
580
580
  subtree?: boolean;
581
581
  }
582
582
 
583
+ interface GetHTMLOptions {
584
+ serializableShadowRoots?: boolean;
585
+ shadowRoots?: ShadowRoot[];
586
+ }
587
+
583
588
  interface GetNotificationOptions {
584
589
  tag?: string;
585
590
  }
@@ -669,10 +674,6 @@ interface ImageEncodeOptions {
669
674
  type?: string;
670
675
  }
671
676
 
672
- interface ImportMeta {
673
- url: string;
674
- }
675
-
676
677
  interface InputEventInit extends UIEventInit {
677
678
  data?: string | null;
678
679
  dataTransfer?: DataTransfer | null;
@@ -846,6 +847,10 @@ interface MediaKeySystemMediaCapability {
846
847
  robustness?: string;
847
848
  }
848
849
 
850
+ interface MediaKeysPolicy {
851
+ minHdcpVersion?: string;
852
+ }
853
+
849
854
  interface MediaMetadataInit {
850
855
  album?: string;
851
856
  artist?: string;
@@ -1185,6 +1190,10 @@ interface PointerEventInit extends MouseEventInit {
1185
1190
  width?: number;
1186
1191
  }
1187
1192
 
1193
+ interface PointerLockOptions {
1194
+ unadjustedMovement?: boolean;
1195
+ }
1196
+
1188
1197
  interface PopStateEventInit extends EventInit {
1189
1198
  state?: any;
1190
1199
  }
@@ -1368,11 +1377,6 @@ interface RTCIceCandidateInit {
1368
1377
  usernameFragment?: string | null;
1369
1378
  }
1370
1379
 
1371
- interface RTCIceCandidatePair {
1372
- local: RTCIceCandidate;
1373
- remote: RTCIceCandidate;
1374
- }
1375
-
1376
1380
  interface RTCIceCandidatePairStats extends RTCStats {
1377
1381
  availableIncomingBitrate?: number;
1378
1382
  availableOutgoingBitrate?: number;
@@ -1504,7 +1508,7 @@ interface RTCRtcpParameters {
1504
1508
  }
1505
1509
 
1506
1510
  interface RTCRtpCapabilities {
1507
- codecs: RTCRtpCodecCapability[];
1511
+ codecs: RTCRtpCodec[];
1508
1512
  headerExtensions: RTCRtpHeaderExtensionCapability[];
1509
1513
  }
1510
1514
 
@@ -1515,9 +1519,6 @@ interface RTCRtpCodec {
1515
1519
  sdpFmtpLine?: string;
1516
1520
  }
1517
1521
 
1518
- interface RTCRtpCodecCapability extends RTCRtpCodec {
1519
- }
1520
-
1521
1522
  interface RTCRtpCodecParameters extends RTCRtpCodec {
1522
1523
  payloadType: number;
1523
1524
  }
@@ -4659,6 +4660,8 @@ interface CSSStyleDeclaration {
4659
4660
  vectorEffect: string;
4660
4661
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
4661
4662
  verticalAlign: string;
4663
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
4664
+ viewTransitionName: string;
4662
4665
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
4663
4666
  visibility: string;
4664
4667
  /**
@@ -7467,6 +7470,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
7467
7470
  releaseEvents(): void;
7468
7471
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
7469
7472
  requestStorageAccess(): Promise<void>;
7473
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */
7474
+ startViewTransition(callbackOptions?: UpdateCallback): ViewTransition;
7470
7475
  /**
7471
7476
  * Writes one or more HTML expressions to a document in the specified window.
7472
7477
  * @param content Specifies the text and HTML tags to write.
@@ -7858,6 +7863,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
7858
7863
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
7859
7864
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
7860
7865
  getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
7866
+ getHTML(options?: GetHTMLOptions): string;
7861
7867
  /**
7862
7868
  * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
7863
7869
  *
@@ -7915,7 +7921,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
7915
7921
  */
7916
7922
  requestFullscreen(options?: FullscreenOptions): Promise<void>;
7917
7923
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */
7918
- requestPointerLock(): void;
7924
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
7919
7925
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */
7920
7926
  scroll(options?: ScrollToOptions): void;
7921
7927
  scroll(x: number, y: number): void;
@@ -8910,6 +8916,7 @@ interface GeolocationCoordinates {
8910
8916
  readonly longitude: number;
8911
8917
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */
8912
8918
  readonly speed: number | null;
8919
+ toJSON(): any;
8913
8920
  }
8914
8921
 
8915
8922
  declare var GeolocationCoordinates: {
@@ -8927,6 +8934,7 @@ interface GeolocationPosition {
8927
8934
  readonly coords: GeolocationCoordinates;
8928
8935
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */
8929
8936
  readonly timestamp: EpochTimeStamp;
8937
+ toJSON(): any;
8930
8938
  }
8931
8939
 
8932
8940
  declare var GeolocationPosition: {
@@ -10183,6 +10191,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
10183
10191
  accessKey: string;
10184
10192
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */
10185
10193
  readonly accessKeyLabel: string;
10194
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) */
10186
10195
  autocapitalize: string;
10187
10196
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */
10188
10197
  dir: string;
@@ -10256,7 +10265,11 @@ interface HTMLEmbedElement extends HTMLElement {
10256
10265
  * @deprecated
10257
10266
  */
10258
10267
  name: string;
10259
- /** Sets or retrieves a URL to be loaded by the object. */
10268
+ /**
10269
+ * Sets or retrieves a URL to be loaded by the object.
10270
+ *
10271
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src)
10272
+ */
10260
10273
  src: string;
10261
10274
  type: string;
10262
10275
  /**
@@ -13376,6 +13389,8 @@ interface HTMLTemplateElement extends HTMLElement {
13376
13389
  shadowRootDelegatesFocus: boolean;
13377
13390
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */
13378
13391
  shadowRootMode: string;
13392
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */
13393
+ shadowRootSerializable: boolean;
13379
13394
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13380
13395
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
13381
13396
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -14561,6 +14576,11 @@ declare var ImageData: {
14561
14576
  new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
14562
14577
  };
14563
14578
 
14579
+ interface ImportMeta {
14580
+ url: string;
14581
+ resolve(specifier: string): string;
14582
+ }
14583
+
14564
14584
  /**
14565
14585
  * Available only in secure contexts.
14566
14586
  *
@@ -15327,6 +15347,7 @@ declare var MediaKeySystemAccess: {
15327
15347
  interface MediaKeys {
15328
15348
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */
15329
15349
  createSession(sessionType?: MediaKeySessionType): MediaKeySession;
15350
+ getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;
15330
15351
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */
15331
15352
  setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
15332
15353
  }
@@ -15544,10 +15565,21 @@ interface MediaSource extends EventTarget {
15544
15565
  declare var MediaSource: {
15545
15566
  prototype: MediaSource;
15546
15567
  new(): MediaSource;
15568
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static) */
15569
+ readonly canConstructInDedicatedWorker: boolean;
15547
15570
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */
15548
15571
  isTypeSupported(type: string): boolean;
15549
15572
  };
15550
15573
 
15574
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle) */
15575
+ interface MediaSourceHandle {
15576
+ }
15577
+
15578
+ declare var MediaSourceHandle: {
15579
+ prototype: MediaSourceHandle;
15580
+ new(): MediaSourceHandle;
15581
+ };
15582
+
15551
15583
  interface MediaStreamEventMap {
15552
15584
  "addtrack": MediaStreamTrackEvent;
15553
15585
  "removetrack": MediaStreamTrackEvent;
@@ -17940,6 +17972,7 @@ declare var PointerEvent: {
17940
17972
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)
17941
17973
  */
17942
17974
  interface PopStateEvent extends Event {
17975
+ readonly hasUAVisualTransition: boolean;
17943
17976
  /**
17944
17977
  * Returns a copy of the information that was provided to pushState() or replaceState().
17945
17978
  *
@@ -18357,6 +18390,11 @@ declare var RTCIceCandidate: {
18357
18390
  new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
18358
18391
  };
18359
18392
 
18393
+ interface RTCIceCandidatePair {
18394
+ local: RTCIceCandidate;
18395
+ remote: RTCIceCandidate;
18396
+ }
18397
+
18360
18398
  interface RTCIceTransportEventMap {
18361
18399
  "gatheringstatechange": Event;
18362
18400
  "selectedcandidatepairchange": Event;
@@ -21606,8 +21644,10 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
21606
21644
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
21607
21645
  readonly mode: ShadowRootMode;
21608
21646
  onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
21647
+ readonly serializable: boolean;
21609
21648
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
21610
21649
  readonly slotAssignment: SlotAssignmentMode;
21650
+ getHTML(options?: GetHTMLOptions): string;
21611
21651
  setHTMLUnsafe(html: string): void;
21612
21652
  /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
21613
21653
  addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -22955,6 +22995,8 @@ declare var URL: {
22955
22995
  canParse(url: string | URL, base?: string): boolean;
22956
22996
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
22957
22997
  createObjectURL(obj: Blob | MediaSource): string;
22998
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
22999
+ parse(url: string | URL, base?: string): URL | null;
22958
23000
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
22959
23001
  revokeObjectURL(url: string): void;
22960
23002
  };
@@ -23276,6 +23318,23 @@ declare var VideoPlaybackQuality: {
23276
23318
  new(): VideoPlaybackQuality;
23277
23319
  };
23278
23320
 
23321
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition) */
23322
+ interface ViewTransition {
23323
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished) */
23324
+ readonly finished: Promise<undefined>;
23325
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
23326
+ readonly ready: Promise<undefined>;
23327
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
23328
+ readonly updateCallbackDone: Promise<undefined>;
23329
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
23330
+ skipTransition(): void;
23331
+ }
23332
+
23333
+ declare var ViewTransition: {
23334
+ prototype: ViewTransition;
23335
+ new(): ViewTransition;
23336
+ };
23337
+
23279
23338
  interface VisualViewportEventMap {
23280
23339
  "resize": Event;
23281
23340
  "scroll": Event;
@@ -25024,6 +25083,7 @@ declare var WebGLRenderingContext: {
25024
25083
  interface WebGLRenderingContextBase {
25025
25084
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */
25026
25085
  readonly canvas: HTMLCanvasElement | OffscreenCanvas;
25086
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace) */
25027
25087
  drawingBufferColorSpace: PredefinedColorSpace;
25028
25088
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
25029
25089
  readonly drawingBufferHeight: GLsizei;
@@ -27317,6 +27377,10 @@ interface UnderlyingSourceStartCallback<R> {
27317
27377
  (controller: ReadableStreamController<R>): any;
27318
27378
  }
27319
27379
 
27380
+ interface UpdateCallback {
27381
+ (): any;
27382
+ }
27383
+
27320
27384
  interface VideoFrameOutputCallback {
27321
27385
  (output: VideoFrame): void;
27322
27386
  }
@@ -28459,7 +28523,7 @@ type ReportList = Report[];
28459
28523
  type RequestInfo = Request | string;
28460
28524
  type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
28461
28525
  type TimerHandler = string | Function;
28462
- type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
28526
+ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
28463
28527
  type Uint32List = Uint32Array | GLuint[];
28464
28528
  type VibratePattern = number | number[];
28465
28529
  type WindowProxy = Window;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.148",
3
+ "version": "0.0.150",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],