@types/web 0.0.286 → 0.0.287

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.286 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.286.
50
+ You can read what changed in version 0.0.287 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.287.
package/index.d.ts CHANGED
@@ -8515,7 +8515,7 @@ declare var CompressionStream: {
8515
8515
  */
8516
8516
  interface ConstantSourceNode extends AudioScheduledSourceNode {
8517
8517
  /**
8518
- * The read-only `offset` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
8518
+ * The read-only `offset` property of the ConstantSourceNode interface returns an AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
8519
8519
  *
8520
8520
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset)
8521
8521
  */
@@ -8788,7 +8788,7 @@ interface Crypto {
8788
8788
  *
8789
8789
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
8790
8790
  */
8791
- getRandomValues<T extends ArrayBufferView>(array: T): T;
8791
+ getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
8792
8792
  /**
8793
8793
  * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
8794
8794
  * Available only in secure contexts.
@@ -19052,7 +19052,7 @@ declare var IDBVersionChangeEvent: {
19052
19052
  };
19053
19053
 
19054
19054
  /**
19055
- * The **`IIRFilterNode`** interface of the Web Audio API is a AudioNode processor which implements a general **infinite impulse response** (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well.
19055
+ * The **`IIRFilterNode`** interface of the Web Audio API is an AudioNode processor which implements a general **infinite impulse response** (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well.
19056
19056
  *
19057
19057
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
19058
19058
  */
@@ -19177,7 +19177,7 @@ interface ImageCapture {
19177
19177
  */
19178
19178
  getPhotoSettings(): Promise<PhotoSettings>;
19179
19179
  /**
19180
- * The **`grabFrame()`** method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with a ImageBitmap containing the snapshot.
19180
+ * The **`grabFrame()`** method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with an ImageBitmap containing the snapshot.
19181
19181
  *
19182
19182
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/grabFrame)
19183
19183
  */
@@ -26348,7 +26348,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
26348
26348
  *
26349
26349
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
26350
26350
  */
26351
- read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26351
+ read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26352
26352
  /**
26353
26353
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
26354
26354
  *
@@ -29838,7 +29838,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29838
29838
  */
29839
29839
  createSVGPoint(): DOMPoint;
29840
29840
  /**
29841
- * The `createSVGRect()` method of the SVGSVGElement interface creates an DOMRect object outside of any document trees.
29841
+ * The `createSVGRect()` method of the SVGSVGElement interface creates a DOMRect object outside of any document trees.
29842
29842
  *
29843
29843
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
29844
29844
  */
@@ -31388,7 +31388,7 @@ interface SourceBuffer extends EventTarget {
31388
31388
  */
31389
31389
  timestampOffset: number;
31390
31390
  /**
31391
- * The **`updating`** read-only property of the SourceBuffer interface indicates whether the `SourceBuffer` is currently being updated — i.e., whether an SourceBuffer.appendBuffer() or SourceBuffer.remove() operation is currently in progress.
31391
+ * The **`updating`** read-only property of the SourceBuffer interface indicates whether the `SourceBuffer` is currently being updated — i.e., whether an SourceBuffer.appendBuffer or SourceBuffer.remove operation is currently in progress.
31392
31392
  *
31393
31393
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating)
31394
31394
  */
@@ -36865,7 +36865,7 @@ interface WebSocket extends EventTarget {
36865
36865
  *
36866
36866
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
36867
36867
  */
36868
- send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
36868
+ send(data: BufferSource | Blob | string): void;
36869
36869
  readonly CONNECTING: 0;
36870
36870
  readonly OPEN: 1;
36871
36871
  readonly CLOSING: 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.286",
3
+ "version": "0.0.287",
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
@@ -8504,7 +8504,7 @@ declare var CompressionStream: {
8504
8504
  */
8505
8505
  interface ConstantSourceNode extends AudioScheduledSourceNode {
8506
8506
  /**
8507
- * The read-only `offset` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
8507
+ * The read-only `offset` property of the ConstantSourceNode interface returns an AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
8508
8508
  *
8509
8509
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset)
8510
8510
  */
@@ -8777,7 +8777,7 @@ interface Crypto {
8777
8777
  *
8778
8778
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
8779
8779
  */
8780
- getRandomValues<T extends ArrayBufferView>(array: T): T;
8780
+ getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
8781
8781
  /**
8782
8782
  * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
8783
8783
  * Available only in secure contexts.
@@ -19028,7 +19028,7 @@ declare var IDBVersionChangeEvent: {
19028
19028
  };
19029
19029
 
19030
19030
  /**
19031
- * The **`IIRFilterNode`** interface of the Web Audio API is a AudioNode processor which implements a general **infinite impulse response** (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well.
19031
+ * The **`IIRFilterNode`** interface of the Web Audio API is an AudioNode processor which implements a general **infinite impulse response** (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well.
19032
19032
  *
19033
19033
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
19034
19034
  */
@@ -19153,7 +19153,7 @@ interface ImageCapture {
19153
19153
  */
19154
19154
  getPhotoSettings(): Promise<PhotoSettings>;
19155
19155
  /**
19156
- * The **`grabFrame()`** method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with a ImageBitmap containing the snapshot.
19156
+ * The **`grabFrame()`** method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with an ImageBitmap containing the snapshot.
19157
19157
  *
19158
19158
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/grabFrame)
19159
19159
  */
@@ -26324,7 +26324,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
26324
26324
  *
26325
26325
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
26326
26326
  */
26327
- read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26327
+ read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26328
26328
  /**
26329
26329
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
26330
26330
  *
@@ -29813,7 +29813,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29813
29813
  */
29814
29814
  createSVGPoint(): DOMPoint;
29815
29815
  /**
29816
- * The `createSVGRect()` method of the SVGSVGElement interface creates an DOMRect object outside of any document trees.
29816
+ * The `createSVGRect()` method of the SVGSVGElement interface creates a DOMRect object outside of any document trees.
29817
29817
  *
29818
29818
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
29819
29819
  */
@@ -31363,7 +31363,7 @@ interface SourceBuffer extends EventTarget {
31363
31363
  */
31364
31364
  timestampOffset: number;
31365
31365
  /**
31366
- * The **`updating`** read-only property of the SourceBuffer interface indicates whether the `SourceBuffer` is currently being updated — i.e., whether an SourceBuffer.appendBuffer() or SourceBuffer.remove() operation is currently in progress.
31366
+ * The **`updating`** read-only property of the SourceBuffer interface indicates whether the `SourceBuffer` is currently being updated — i.e., whether an SourceBuffer.appendBuffer or SourceBuffer.remove operation is currently in progress.
31367
31367
  *
31368
31368
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating)
31369
31369
  */
@@ -36839,7 +36839,7 @@ interface WebSocket extends EventTarget {
36839
36839
  *
36840
36840
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
36841
36841
  */
36842
- send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
36842
+ send(data: BufferSource | Blob | string): void;
36843
36843
  readonly CONNECTING: 0;
36844
36844
  readonly OPEN: 1;
36845
36845
  readonly CLOSING: 2;
package/ts5.6/index.d.ts CHANGED
@@ -8512,7 +8512,7 @@ declare var CompressionStream: {
8512
8512
  */
8513
8513
  interface ConstantSourceNode extends AudioScheduledSourceNode {
8514
8514
  /**
8515
- * The read-only `offset` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
8515
+ * The read-only `offset` property of the ConstantSourceNode interface returns an AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
8516
8516
  *
8517
8517
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset)
8518
8518
  */
@@ -8785,7 +8785,7 @@ interface Crypto {
8785
8785
  *
8786
8786
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
8787
8787
  */
8788
- getRandomValues<T extends ArrayBufferView>(array: T): T;
8788
+ getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
8789
8789
  /**
8790
8790
  * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
8791
8791
  * Available only in secure contexts.
@@ -19049,7 +19049,7 @@ declare var IDBVersionChangeEvent: {
19049
19049
  };
19050
19050
 
19051
19051
  /**
19052
- * The **`IIRFilterNode`** interface of the Web Audio API is a AudioNode processor which implements a general **infinite impulse response** (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well.
19052
+ * The **`IIRFilterNode`** interface of the Web Audio API is an AudioNode processor which implements a general **infinite impulse response** (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well.
19053
19053
  *
19054
19054
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
19055
19055
  */
@@ -19174,7 +19174,7 @@ interface ImageCapture {
19174
19174
  */
19175
19175
  getPhotoSettings(): Promise<PhotoSettings>;
19176
19176
  /**
19177
- * The **`grabFrame()`** method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with a ImageBitmap containing the snapshot.
19177
+ * The **`grabFrame()`** method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with an ImageBitmap containing the snapshot.
19178
19178
  *
19179
19179
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/grabFrame)
19180
19180
  */
@@ -26345,7 +26345,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
26345
26345
  *
26346
26346
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
26347
26347
  */
26348
- read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26348
+ read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26349
26349
  /**
26350
26350
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
26351
26351
  *
@@ -29835,7 +29835,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29835
29835
  */
29836
29836
  createSVGPoint(): DOMPoint;
29837
29837
  /**
29838
- * The `createSVGRect()` method of the SVGSVGElement interface creates an DOMRect object outside of any document trees.
29838
+ * The `createSVGRect()` method of the SVGSVGElement interface creates a DOMRect object outside of any document trees.
29839
29839
  *
29840
29840
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
29841
29841
  */
@@ -31385,7 +31385,7 @@ interface SourceBuffer extends EventTarget {
31385
31385
  */
31386
31386
  timestampOffset: number;
31387
31387
  /**
31388
- * The **`updating`** read-only property of the SourceBuffer interface indicates whether the `SourceBuffer` is currently being updated — i.e., whether an SourceBuffer.appendBuffer() or SourceBuffer.remove() operation is currently in progress.
31388
+ * The **`updating`** read-only property of the SourceBuffer interface indicates whether the `SourceBuffer` is currently being updated — i.e., whether an SourceBuffer.appendBuffer or SourceBuffer.remove operation is currently in progress.
31389
31389
  *
31390
31390
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating)
31391
31391
  */
@@ -36862,7 +36862,7 @@ interface WebSocket extends EventTarget {
36862
36862
  *
36863
36863
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
36864
36864
  */
36865
- send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
36865
+ send(data: BufferSource | Blob | string): void;
36866
36866
  readonly CONNECTING: 0;
36867
36867
  readonly OPEN: 1;
36868
36868
  readonly CLOSING: 2;
package/ts5.9/index.d.ts CHANGED
@@ -8512,7 +8512,7 @@ declare var CompressionStream: {
8512
8512
  */
8513
8513
  interface ConstantSourceNode extends AudioScheduledSourceNode {
8514
8514
  /**
8515
- * The read-only `offset` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
8515
+ * The read-only `offset` property of the ConstantSourceNode interface returns an AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
8516
8516
  *
8517
8517
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset)
8518
8518
  */
@@ -8785,7 +8785,7 @@ interface Crypto {
8785
8785
  *
8786
8786
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
8787
8787
  */
8788
- getRandomValues<T extends ArrayBufferView>(array: T): T;
8788
+ getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
8789
8789
  /**
8790
8790
  * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
8791
8791
  * Available only in secure contexts.
@@ -19049,7 +19049,7 @@ declare var IDBVersionChangeEvent: {
19049
19049
  };
19050
19050
 
19051
19051
  /**
19052
- * The **`IIRFilterNode`** interface of the Web Audio API is a AudioNode processor which implements a general **infinite impulse response** (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well.
19052
+ * The **`IIRFilterNode`** interface of the Web Audio API is an AudioNode processor which implements a general **infinite impulse response** (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well.
19053
19053
  *
19054
19054
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
19055
19055
  */
@@ -19174,7 +19174,7 @@ interface ImageCapture {
19174
19174
  */
19175
19175
  getPhotoSettings(): Promise<PhotoSettings>;
19176
19176
  /**
19177
- * The **`grabFrame()`** method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with a ImageBitmap containing the snapshot.
19177
+ * The **`grabFrame()`** method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with an ImageBitmap containing the snapshot.
19178
19178
  *
19179
19179
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/grabFrame)
19180
19180
  */
@@ -26345,7 +26345,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
26345
26345
  *
26346
26346
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
26347
26347
  */
26348
- read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26348
+ read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26349
26349
  /**
26350
26350
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
26351
26351
  *
@@ -29835,7 +29835,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29835
29835
  */
29836
29836
  createSVGPoint(): DOMPoint;
29837
29837
  /**
29838
- * The `createSVGRect()` method of the SVGSVGElement interface creates an DOMRect object outside of any document trees.
29838
+ * The `createSVGRect()` method of the SVGSVGElement interface creates a DOMRect object outside of any document trees.
29839
29839
  *
29840
29840
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
29841
29841
  */
@@ -31385,7 +31385,7 @@ interface SourceBuffer extends EventTarget {
31385
31385
  */
31386
31386
  timestampOffset: number;
31387
31387
  /**
31388
- * The **`updating`** read-only property of the SourceBuffer interface indicates whether the `SourceBuffer` is currently being updated — i.e., whether an SourceBuffer.appendBuffer() or SourceBuffer.remove() operation is currently in progress.
31388
+ * The **`updating`** read-only property of the SourceBuffer interface indicates whether the `SourceBuffer` is currently being updated — i.e., whether an SourceBuffer.appendBuffer or SourceBuffer.remove operation is currently in progress.
31389
31389
  *
31390
31390
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating)
31391
31391
  */
@@ -36862,7 +36862,7 @@ interface WebSocket extends EventTarget {
36862
36862
  *
36863
36863
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
36864
36864
  */
36865
- send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
36865
+ send(data: BufferSource | Blob | string): void;
36866
36866
  readonly CONNECTING: 0;
36867
36867
  readonly OPEN: 1;
36868
36868
  readonly CLOSING: 2;