@types/web 0.0.344 → 0.0.345

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.344 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.344.
50
+ You can read what changed in version 0.0.345 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.345.
package/index.d.ts CHANGED
@@ -1218,6 +1218,15 @@ interface HashChangeEventInit extends EventInit {
1218
1218
  oldURL?: string;
1219
1219
  }
1220
1220
 
1221
+ interface HighlightHitResult {
1222
+ highlight?: Highlight;
1223
+ ranges?: AbstractRange[];
1224
+ }
1225
+
1226
+ interface HighlightsFromPointOptions {
1227
+ shadowRoots?: ShadowRoot[];
1228
+ }
1229
+
1221
1230
  interface HkdfParams extends Algorithm {
1222
1231
  hash: HashAlgorithmIdentifier;
1223
1232
  info: BufferSource;
@@ -5372,6 +5381,36 @@ declare var CSSCounterStyleRule: {
5372
5381
  new(): CSSCounterStyleRule;
5373
5382
  };
5374
5383
 
5384
+ /**
5385
+ * The **`CSSFontFaceDescriptors`** interface represents a CSS declaration block for an @font-face at-rule.
5386
+ *
5387
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceDescriptors)
5388
+ */
5389
+ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase {
5390
+ "font-display": string;
5391
+ "font-family": string;
5392
+ "font-feature-settings": string;
5393
+ "font-stretch": string;
5394
+ "font-style": string;
5395
+ "font-weight": string;
5396
+ fontDisplay: string;
5397
+ fontFamily: string;
5398
+ fontFeatureSettings: string;
5399
+ fontStretch: string;
5400
+ fontStyle: string;
5401
+ fontWeight: string;
5402
+ "size-adjust": string;
5403
+ sizeAdjust: string;
5404
+ src: string;
5405
+ "unicode-range": string;
5406
+ unicodeRange: string;
5407
+ }
5408
+
5409
+ declare var CSSFontFaceDescriptors: {
5410
+ prototype: CSSFontFaceDescriptors;
5411
+ new(): CSSFontFaceDescriptors;
5412
+ };
5413
+
5375
5414
  /**
5376
5415
  * The **`CSSFontFaceRule`** interface represents an @font-face at-rule.
5377
5416
  *
@@ -5383,7 +5422,7 @@ interface CSSFontFaceRule extends CSSRule {
5383
5422
  *
5384
5423
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
5385
5424
  */
5386
- get style(): CSSStyleDeclaration;
5425
+ get style(): CSSFontFaceDescriptors;
5387
5426
  set style(cssText: string);
5388
5427
  }
5389
5428
 
@@ -21915,6 +21954,12 @@ declare var Highlight: {
21915
21954
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry)
21916
21955
  */
21917
21956
  interface HighlightRegistry {
21957
+ /**
21958
+ * The **`highlightsFromPoint()`** method of the HighlightRegistry interface returns an array of objects representing the custom highlights applied at a specific point within the viewport.
21959
+ *
21960
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry/highlightsFromPoint)
21961
+ */
21962
+ highlightsFromPoint(x: number, y: number, options?: HighlightsFromPointOptions): HighlightHitResult[];
21918
21963
  forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;
21919
21964
  }
21920
21965
 
@@ -29482,6 +29527,12 @@ interface RTCIceTransport extends EventTarget {
29482
29527
  onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
29483
29528
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */
29484
29529
  onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
29530
+ /**
29531
+ * The **`role`** read-only property of the RTCIceTransport interface indicates which ICE role the transport is fulfilling: that of the controlling agent, or the agent that is being controlled.
29532
+ *
29533
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/role)
29534
+ */
29535
+ readonly role: RTCIceRole;
29485
29536
  /**
29486
29537
  * The **`state`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating.
29487
29538
  *
@@ -38306,6 +38357,7 @@ declare var ViewTransitionTypeSet: {
38306
38357
  interface VisualViewportEventMap {
38307
38358
  "resize": Event;
38308
38359
  "scroll": Event;
38360
+ "scrollend": Event;
38309
38361
  }
38310
38362
 
38311
38363
  /**
@@ -38336,6 +38388,8 @@ interface VisualViewport extends EventTarget {
38336
38388
  onresize: ((this: VisualViewport, ev: Event) => any) | null;
38337
38389
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */
38338
38390
  onscroll: ((this: VisualViewport, ev: Event) => any) | null;
38391
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scrollend_event) */
38392
+ onscrollend: ((this: VisualViewport, ev: Event) => any) | null;
38339
38393
  /**
38340
38394
  * The **`pageLeft`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or 0 if current document is not fully active.
38341
38395
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.344",
3
+ "version": "0.0.345",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -1215,6 +1215,15 @@ interface HashChangeEventInit extends EventInit {
1215
1215
  oldURL?: string;
1216
1216
  }
1217
1217
 
1218
+ interface HighlightHitResult {
1219
+ highlight?: Highlight;
1220
+ ranges?: AbstractRange[];
1221
+ }
1222
+
1223
+ interface HighlightsFromPointOptions {
1224
+ shadowRoots?: ShadowRoot[];
1225
+ }
1226
+
1218
1227
  interface HkdfParams extends Algorithm {
1219
1228
  hash: HashAlgorithmIdentifier;
1220
1229
  info: BufferSource;
@@ -5369,6 +5378,36 @@ declare var CSSCounterStyleRule: {
5369
5378
  new(): CSSCounterStyleRule;
5370
5379
  };
5371
5380
 
5381
+ /**
5382
+ * The **`CSSFontFaceDescriptors`** interface represents a CSS declaration block for an @font-face at-rule.
5383
+ *
5384
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceDescriptors)
5385
+ */
5386
+ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase {
5387
+ "font-display": string;
5388
+ "font-family": string;
5389
+ "font-feature-settings": string;
5390
+ "font-stretch": string;
5391
+ "font-style": string;
5392
+ "font-weight": string;
5393
+ fontDisplay: string;
5394
+ fontFamily: string;
5395
+ fontFeatureSettings: string;
5396
+ fontStretch: string;
5397
+ fontStyle: string;
5398
+ fontWeight: string;
5399
+ "size-adjust": string;
5400
+ sizeAdjust: string;
5401
+ src: string;
5402
+ "unicode-range": string;
5403
+ unicodeRange: string;
5404
+ }
5405
+
5406
+ declare var CSSFontFaceDescriptors: {
5407
+ prototype: CSSFontFaceDescriptors;
5408
+ new(): CSSFontFaceDescriptors;
5409
+ };
5410
+
5372
5411
  /**
5373
5412
  * The **`CSSFontFaceRule`** interface represents an @font-face at-rule.
5374
5413
  *
@@ -5380,7 +5419,7 @@ interface CSSFontFaceRule extends CSSRule {
5380
5419
  *
5381
5420
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
5382
5421
  */
5383
- readonly style: CSSStyleDeclaration;
5422
+ readonly style: CSSFontFaceDescriptors;
5384
5423
  }
5385
5424
 
5386
5425
  declare var CSSFontFaceRule: {
@@ -21891,6 +21930,12 @@ declare var Highlight: {
21891
21930
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry)
21892
21931
  */
21893
21932
  interface HighlightRegistry {
21933
+ /**
21934
+ * The **`highlightsFromPoint()`** method of the HighlightRegistry interface returns an array of objects representing the custom highlights applied at a specific point within the viewport.
21935
+ *
21936
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry/highlightsFromPoint)
21937
+ */
21938
+ highlightsFromPoint(x: number, y: number, options?: HighlightsFromPointOptions): HighlightHitResult[];
21894
21939
  forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;
21895
21940
  }
21896
21941
 
@@ -29458,6 +29503,12 @@ interface RTCIceTransport extends EventTarget {
29458
29503
  onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
29459
29504
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */
29460
29505
  onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
29506
+ /**
29507
+ * The **`role`** read-only property of the RTCIceTransport interface indicates which ICE role the transport is fulfilling: that of the controlling agent, or the agent that is being controlled.
29508
+ *
29509
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/role)
29510
+ */
29511
+ readonly role: RTCIceRole;
29461
29512
  /**
29462
29513
  * The **`state`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating.
29463
29514
  *
@@ -38280,6 +38331,7 @@ declare var ViewTransitionTypeSet: {
38280
38331
  interface VisualViewportEventMap {
38281
38332
  "resize": Event;
38282
38333
  "scroll": Event;
38334
+ "scrollend": Event;
38283
38335
  }
38284
38336
 
38285
38337
  /**
@@ -38310,6 +38362,8 @@ interface VisualViewport extends EventTarget {
38310
38362
  onresize: ((this: VisualViewport, ev: Event) => any) | null;
38311
38363
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */
38312
38364
  onscroll: ((this: VisualViewport, ev: Event) => any) | null;
38365
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scrollend_event) */
38366
+ onscrollend: ((this: VisualViewport, ev: Event) => any) | null;
38313
38367
  /**
38314
38368
  * The **`pageLeft`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or 0 if current document is not fully active.
38315
38369
  *
package/ts5.6/index.d.ts CHANGED
@@ -1215,6 +1215,15 @@ interface HashChangeEventInit extends EventInit {
1215
1215
  oldURL?: string;
1216
1216
  }
1217
1217
 
1218
+ interface HighlightHitResult {
1219
+ highlight?: Highlight;
1220
+ ranges?: AbstractRange[];
1221
+ }
1222
+
1223
+ interface HighlightsFromPointOptions {
1224
+ shadowRoots?: ShadowRoot[];
1225
+ }
1226
+
1218
1227
  interface HkdfParams extends Algorithm {
1219
1228
  hash: HashAlgorithmIdentifier;
1220
1229
  info: BufferSource;
@@ -5369,6 +5378,36 @@ declare var CSSCounterStyleRule: {
5369
5378
  new(): CSSCounterStyleRule;
5370
5379
  };
5371
5380
 
5381
+ /**
5382
+ * The **`CSSFontFaceDescriptors`** interface represents a CSS declaration block for an @font-face at-rule.
5383
+ *
5384
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceDescriptors)
5385
+ */
5386
+ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase {
5387
+ "font-display": string;
5388
+ "font-family": string;
5389
+ "font-feature-settings": string;
5390
+ "font-stretch": string;
5391
+ "font-style": string;
5392
+ "font-weight": string;
5393
+ fontDisplay: string;
5394
+ fontFamily: string;
5395
+ fontFeatureSettings: string;
5396
+ fontStretch: string;
5397
+ fontStyle: string;
5398
+ fontWeight: string;
5399
+ "size-adjust": string;
5400
+ sizeAdjust: string;
5401
+ src: string;
5402
+ "unicode-range": string;
5403
+ unicodeRange: string;
5404
+ }
5405
+
5406
+ declare var CSSFontFaceDescriptors: {
5407
+ prototype: CSSFontFaceDescriptors;
5408
+ new(): CSSFontFaceDescriptors;
5409
+ };
5410
+
5372
5411
  /**
5373
5412
  * The **`CSSFontFaceRule`** interface represents an @font-face at-rule.
5374
5413
  *
@@ -5380,7 +5419,7 @@ interface CSSFontFaceRule extends CSSRule {
5380
5419
  *
5381
5420
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
5382
5421
  */
5383
- get style(): CSSStyleDeclaration;
5422
+ get style(): CSSFontFaceDescriptors;
5384
5423
  set style(cssText: string);
5385
5424
  }
5386
5425
 
@@ -21912,6 +21951,12 @@ declare var Highlight: {
21912
21951
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry)
21913
21952
  */
21914
21953
  interface HighlightRegistry {
21954
+ /**
21955
+ * The **`highlightsFromPoint()`** method of the HighlightRegistry interface returns an array of objects representing the custom highlights applied at a specific point within the viewport.
21956
+ *
21957
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry/highlightsFromPoint)
21958
+ */
21959
+ highlightsFromPoint(x: number, y: number, options?: HighlightsFromPointOptions): HighlightHitResult[];
21915
21960
  forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;
21916
21961
  }
21917
21962
 
@@ -29479,6 +29524,12 @@ interface RTCIceTransport extends EventTarget {
29479
29524
  onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
29480
29525
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */
29481
29526
  onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
29527
+ /**
29528
+ * The **`role`** read-only property of the RTCIceTransport interface indicates which ICE role the transport is fulfilling: that of the controlling agent, or the agent that is being controlled.
29529
+ *
29530
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/role)
29531
+ */
29532
+ readonly role: RTCIceRole;
29482
29533
  /**
29483
29534
  * The **`state`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating.
29484
29535
  *
@@ -38303,6 +38354,7 @@ declare var ViewTransitionTypeSet: {
38303
38354
  interface VisualViewportEventMap {
38304
38355
  "resize": Event;
38305
38356
  "scroll": Event;
38357
+ "scrollend": Event;
38306
38358
  }
38307
38359
 
38308
38360
  /**
@@ -38333,6 +38385,8 @@ interface VisualViewport extends EventTarget {
38333
38385
  onresize: ((this: VisualViewport, ev: Event) => any) | null;
38334
38386
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */
38335
38387
  onscroll: ((this: VisualViewport, ev: Event) => any) | null;
38388
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scrollend_event) */
38389
+ onscrollend: ((this: VisualViewport, ev: Event) => any) | null;
38336
38390
  /**
38337
38391
  * The **`pageLeft`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or 0 if current document is not fully active.
38338
38392
  *
package/ts5.9/index.d.ts CHANGED
@@ -1215,6 +1215,15 @@ interface HashChangeEventInit extends EventInit {
1215
1215
  oldURL?: string;
1216
1216
  }
1217
1217
 
1218
+ interface HighlightHitResult {
1219
+ highlight?: Highlight;
1220
+ ranges?: AbstractRange[];
1221
+ }
1222
+
1223
+ interface HighlightsFromPointOptions {
1224
+ shadowRoots?: ShadowRoot[];
1225
+ }
1226
+
1218
1227
  interface HkdfParams extends Algorithm {
1219
1228
  hash: HashAlgorithmIdentifier;
1220
1229
  info: BufferSource;
@@ -5369,6 +5378,36 @@ declare var CSSCounterStyleRule: {
5369
5378
  new(): CSSCounterStyleRule;
5370
5379
  };
5371
5380
 
5381
+ /**
5382
+ * The **`CSSFontFaceDescriptors`** interface represents a CSS declaration block for an @font-face at-rule.
5383
+ *
5384
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceDescriptors)
5385
+ */
5386
+ interface CSSFontFaceDescriptors extends CSSStyleDeclarationBase {
5387
+ "font-display": string;
5388
+ "font-family": string;
5389
+ "font-feature-settings": string;
5390
+ "font-stretch": string;
5391
+ "font-style": string;
5392
+ "font-weight": string;
5393
+ fontDisplay: string;
5394
+ fontFamily: string;
5395
+ fontFeatureSettings: string;
5396
+ fontStretch: string;
5397
+ fontStyle: string;
5398
+ fontWeight: string;
5399
+ "size-adjust": string;
5400
+ sizeAdjust: string;
5401
+ src: string;
5402
+ "unicode-range": string;
5403
+ unicodeRange: string;
5404
+ }
5405
+
5406
+ declare var CSSFontFaceDescriptors: {
5407
+ prototype: CSSFontFaceDescriptors;
5408
+ new(): CSSFontFaceDescriptors;
5409
+ };
5410
+
5372
5411
  /**
5373
5412
  * The **`CSSFontFaceRule`** interface represents an @font-face at-rule.
5374
5413
  *
@@ -5380,7 +5419,7 @@ interface CSSFontFaceRule extends CSSRule {
5380
5419
  *
5381
5420
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
5382
5421
  */
5383
- get style(): CSSStyleDeclaration;
5422
+ get style(): CSSFontFaceDescriptors;
5384
5423
  set style(cssText: string);
5385
5424
  }
5386
5425
 
@@ -21912,6 +21951,12 @@ declare var Highlight: {
21912
21951
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry)
21913
21952
  */
21914
21953
  interface HighlightRegistry {
21954
+ /**
21955
+ * The **`highlightsFromPoint()`** method of the HighlightRegistry interface returns an array of objects representing the custom highlights applied at a specific point within the viewport.
21956
+ *
21957
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry/highlightsFromPoint)
21958
+ */
21959
+ highlightsFromPoint(x: number, y: number, options?: HighlightsFromPointOptions): HighlightHitResult[];
21915
21960
  forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;
21916
21961
  }
21917
21962
 
@@ -29479,6 +29524,12 @@ interface RTCIceTransport extends EventTarget {
29479
29524
  onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
29480
29525
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */
29481
29526
  onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
29527
+ /**
29528
+ * The **`role`** read-only property of the RTCIceTransport interface indicates which ICE role the transport is fulfilling: that of the controlling agent, or the agent that is being controlled.
29529
+ *
29530
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/role)
29531
+ */
29532
+ readonly role: RTCIceRole;
29482
29533
  /**
29483
29534
  * The **`state`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating.
29484
29535
  *
@@ -38303,6 +38354,7 @@ declare var ViewTransitionTypeSet: {
38303
38354
  interface VisualViewportEventMap {
38304
38355
  "resize": Event;
38305
38356
  "scroll": Event;
38357
+ "scrollend": Event;
38306
38358
  }
38307
38359
 
38308
38360
  /**
@@ -38333,6 +38385,8 @@ interface VisualViewport extends EventTarget {
38333
38385
  onresize: ((this: VisualViewport, ev: Event) => any) | null;
38334
38386
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */
38335
38387
  onscroll: ((this: VisualViewport, ev: Event) => any) | null;
38388
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scrollend_event) */
38389
+ onscrollend: ((this: VisualViewport, ev: Event) => any) | null;
38336
38390
  /**
38337
38391
  * The **`pageLeft`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or 0 if current document is not fully active.
38338
38392
  *