@types/web 0.0.264 → 0.0.265

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.264 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.264.
50
+ You can read what changed in version 0.0.265 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.265.
package/index.d.ts CHANGED
@@ -10696,7 +10696,7 @@ declare var Document: {
10696
10696
  prototype: Document;
10697
10697
  new(): Document;
10698
10698
  /**
10699
- * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10699
+ * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10700
10700
  *
10701
10701
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
10702
10702
  */
@@ -11370,7 +11370,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11370
11370
  */
11371
11371
  setAttributeNodeNS(attr: Attr): Attr | null;
11372
11372
  /**
11373
- * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11373
+ * The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11374
11374
  *
11375
11375
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
11376
11376
  */
@@ -15300,7 +15300,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
15300
15300
  */
15301
15301
  readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
15302
15302
  /**
15303
- * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `<input type='file'>` elements should let the user select directories instead of files.
15303
+ * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `<input type='file'>` elements can only select directories instead of files.
15304
15304
  *
15305
15305
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory)
15306
15306
  */
@@ -18162,7 +18162,7 @@ declare var Headers: {
18162
18162
  */
18163
18163
  interface Highlight {
18164
18164
  /**
18165
- * It is possible to create Range objects that overlap in a document.
18165
+ * The `priority` property of the Highlight interface is a number used to determine which highlight's styles should be used to resolve style conflicts in overlapping parts.
18166
18166
  *
18167
18167
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority)
18168
18168
  */
@@ -25586,7 +25586,7 @@ declare var RTCPeerConnectionIceEvent: {
25586
25586
  */
25587
25587
  interface RTCRtpReceiver {
25588
25588
  /**
25589
- * The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out.
25589
+ * The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter should hold media before playing it out.
25590
25590
  *
25591
25591
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)
25592
25592
  */
@@ -26126,7 +26126,7 @@ interface ReadableByteStreamController {
26126
26126
  */
26127
26127
  close(): void;
26128
26128
  /**
26129
- * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
26129
+ * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues).
26130
26130
  *
26131
26131
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
26132
26132
  */
@@ -31136,7 +31136,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
31136
31136
  */
31137
31137
  getHTML(options?: GetHTMLOptions): string;
31138
31138
  /**
31139
- * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
31139
+ * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
31140
31140
  *
31141
31141
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
31142
31142
  */
@@ -33297,7 +33297,7 @@ interface URLPattern {
33297
33297
  */
33298
33298
  exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
33299
33299
  /**
33300
- * The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
33300
+ * The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
33301
33301
  *
33302
33302
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
33303
33303
  */
@@ -36683,7 +36683,7 @@ interface WebSocket extends EventTarget {
36683
36683
  *
36684
36684
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
36685
36685
  */
36686
- readonly readyState: number;
36686
+ readonly readyState: 0 | 1 | 2 | 3;
36687
36687
  /**
36688
36688
  * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
36689
36689
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.264",
3
+ "version": "0.0.265",
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
@@ -10688,7 +10688,7 @@ declare var Document: {
10688
10688
  prototype: Document;
10689
10689
  new(): Document;
10690
10690
  /**
10691
- * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10691
+ * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10692
10692
  *
10693
10693
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
10694
10694
  */
@@ -11360,7 +11360,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11360
11360
  */
11361
11361
  setAttributeNodeNS(attr: Attr): Attr | null;
11362
11362
  /**
11363
- * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11363
+ * The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11364
11364
  *
11365
11365
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
11366
11366
  */
@@ -15285,7 +15285,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
15285
15285
  */
15286
15286
  readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
15287
15287
  /**
15288
- * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `<input type='file'>` elements should let the user select directories instead of files.
15288
+ * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `<input type='file'>` elements can only select directories instead of files.
15289
15289
  *
15290
15290
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory)
15291
15291
  */
@@ -18141,7 +18141,7 @@ declare var Headers: {
18141
18141
  */
18142
18142
  interface Highlight {
18143
18143
  /**
18144
- * It is possible to create Range objects that overlap in a document.
18144
+ * The `priority` property of the Highlight interface is a number used to determine which highlight's styles should be used to resolve style conflicts in overlapping parts.
18145
18145
  *
18146
18146
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority)
18147
18147
  */
@@ -25565,7 +25565,7 @@ declare var RTCPeerConnectionIceEvent: {
25565
25565
  */
25566
25566
  interface RTCRtpReceiver {
25567
25567
  /**
25568
- * The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out.
25568
+ * The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter should hold media before playing it out.
25569
25569
  *
25570
25570
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)
25571
25571
  */
@@ -26105,7 +26105,7 @@ interface ReadableByteStreamController {
26105
26105
  */
26106
26106
  close(): void;
26107
26107
  /**
26108
- * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
26108
+ * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues).
26109
26109
  *
26110
26110
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
26111
26111
  */
@@ -31114,7 +31114,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
31114
31114
  */
31115
31115
  getHTML(options?: GetHTMLOptions): string;
31116
31116
  /**
31117
- * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
31117
+ * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
31118
31118
  *
31119
31119
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
31120
31120
  */
@@ -33274,7 +33274,7 @@ interface URLPattern {
33274
33274
  */
33275
33275
  exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
33276
33276
  /**
33277
- * The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
33277
+ * The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
33278
33278
  *
33279
33279
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
33280
33280
  */
@@ -36660,7 +36660,7 @@ interface WebSocket extends EventTarget {
36660
36660
  *
36661
36661
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
36662
36662
  */
36663
- readonly readyState: number;
36663
+ readonly readyState: 0 | 1 | 2 | 3;
36664
36664
  /**
36665
36665
  * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
36666
36666
  *
package/ts5.6/index.d.ts CHANGED
@@ -10696,7 +10696,7 @@ declare var Document: {
10696
10696
  prototype: Document;
10697
10697
  new(): Document;
10698
10698
  /**
10699
- * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10699
+ * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10700
10700
  *
10701
10701
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
10702
10702
  */
@@ -11370,7 +11370,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11370
11370
  */
11371
11371
  setAttributeNodeNS(attr: Attr): Attr | null;
11372
11372
  /**
11373
- * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11373
+ * The **`setHTMLUnsafe()`** method of the Element interface is used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11374
11374
  *
11375
11375
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
11376
11376
  */
@@ -15300,7 +15300,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
15300
15300
  */
15301
15301
  readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
15302
15302
  /**
15303
- * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `<input type='file'>` elements should let the user select directories instead of files.
15303
+ * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `<input type='file'>` elements can only select directories instead of files.
15304
15304
  *
15305
15305
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory)
15306
15306
  */
@@ -18162,7 +18162,7 @@ declare var Headers: {
18162
18162
  */
18163
18163
  interface Highlight {
18164
18164
  /**
18165
- * It is possible to create Range objects that overlap in a document.
18165
+ * The `priority` property of the Highlight interface is a number used to determine which highlight's styles should be used to resolve style conflicts in overlapping parts.
18166
18166
  *
18167
18167
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority)
18168
18168
  */
@@ -25586,7 +25586,7 @@ declare var RTCPeerConnectionIceEvent: {
25586
25586
  */
25587
25587
  interface RTCRtpReceiver {
25588
25588
  /**
25589
- * The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out.
25589
+ * The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter should hold media before playing it out.
25590
25590
  *
25591
25591
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)
25592
25592
  */
@@ -26126,7 +26126,7 @@ interface ReadableByteStreamController {
26126
26126
  */
26127
26127
  close(): void;
26128
26128
  /**
26129
- * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
26129
+ * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is transferred into the stream's internal queues).
26130
26130
  *
26131
26131
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
26132
26132
  */
@@ -31136,7 +31136,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
31136
31136
  */
31137
31137
  getHTML(options?: GetHTMLOptions): string;
31138
31138
  /**
31139
- * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
31139
+ * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse HTML input into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
31140
31140
  *
31141
31141
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
31142
31142
  */
@@ -33297,7 +33297,7 @@ interface URLPattern {
33297
33297
  */
33298
33298
  exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
33299
33299
  /**
33300
- * The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
33300
+ * The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
33301
33301
  *
33302
33302
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
33303
33303
  */
@@ -36683,7 +36683,7 @@ interface WebSocket extends EventTarget {
36683
36683
  *
36684
36684
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
36685
36685
  */
36686
- readonly readyState: number;
36686
+ readonly readyState: 0 | 1 | 2 | 3;
36687
36687
  /**
36688
36688
  * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
36689
36689
  *