@types/webworker 0.0.44 → 0.0.45
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 +1 -1
- package/index.d.ts +19 -19
- package/package.json +1 -1
- package/ts5.5/index.d.ts +19 -19
- package/ts5.6/index.d.ts +19 -19
- package/ts5.9/index.d.ts +19 -19
package/README.md
CHANGED
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.45 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.45.
|
package/index.d.ts
CHANGED
|
@@ -1091,8 +1091,8 @@ interface WebTransportErrorOptions {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
1093
|
interface WebTransportHash {
|
|
1094
|
-
algorithm
|
|
1095
|
-
value
|
|
1094
|
+
algorithm: string;
|
|
1095
|
+
value: BufferSource;
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
1098
|
interface WebTransportOptions {
|
|
@@ -2668,14 +2668,14 @@ declare var CloseEvent: {
|
|
|
2668
2668
|
};
|
|
2669
2669
|
|
|
2670
2670
|
/**
|
|
2671
|
-
* The **`CompressionStream`** interface of the Compression Streams API
|
|
2671
|
+
* The **`CompressionStream`** interface of the Compression Streams API compresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
2672
2672
|
*
|
|
2673
2673
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2674
2674
|
*/
|
|
2675
2675
|
interface CompressionStream extends GenericTransformStream {
|
|
2676
|
-
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2676
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
|
|
2677
2677
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2678
|
-
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2678
|
+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream that accepts uncompressed data to be compressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
2679
2679
|
readonly writable: WritableStream<BufferSource>;
|
|
2680
2680
|
}
|
|
2681
2681
|
|
|
@@ -3592,14 +3592,14 @@ declare var DOMStringList: {
|
|
|
3592
3592
|
};
|
|
3593
3593
|
|
|
3594
3594
|
/**
|
|
3595
|
-
* The **`DecompressionStream`** interface of the Compression Streams API
|
|
3595
|
+
* The **`DecompressionStream`** interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
3596
3596
|
*
|
|
3597
3597
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
3598
3598
|
*/
|
|
3599
3599
|
interface DecompressionStream extends GenericTransformStream {
|
|
3600
|
-
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
3600
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
|
|
3601
3601
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
3602
|
-
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
3602
|
+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream that accepts compressed data to be decompressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
3603
3603
|
readonly writable: WritableStream<BufferSource>;
|
|
3604
3604
|
}
|
|
3605
3605
|
|
|
@@ -7184,7 +7184,7 @@ interface PushMessageData {
|
|
|
7184
7184
|
*/
|
|
7185
7185
|
blob(): Blob;
|
|
7186
7186
|
/**
|
|
7187
|
-
* The **`bytes()`** method of the PushMessageData interface extracts push message data as
|
|
7187
|
+
* The **`bytes()`** method of the PushMessageData interface extracts push message data as a Uint8Array object.
|
|
7188
7188
|
*
|
|
7189
7189
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes)
|
|
7190
7190
|
*/
|
|
@@ -8673,14 +8673,14 @@ interface TextDecoderCommon {
|
|
|
8673
8673
|
}
|
|
8674
8674
|
|
|
8675
8675
|
/**
|
|
8676
|
-
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder.
|
|
8676
|
+
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
8677
8677
|
*
|
|
8678
8678
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
8679
8679
|
*/
|
|
8680
8680
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
8681
|
-
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
8681
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
|
|
8682
8682
|
readonly readable: ReadableStream<string>;
|
|
8683
|
-
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
8683
|
+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream that accepts binary data, in the form of ArrayBuffer, TypedArray, or DataView chunks (SharedArrayBuffer and its views are also allowed), to be decoded into strings. */
|
|
8684
8684
|
readonly writable: WritableStream<BufferSource>;
|
|
8685
8685
|
}
|
|
8686
8686
|
|
|
@@ -8724,14 +8724,14 @@ interface TextEncoderCommon {
|
|
|
8724
8724
|
}
|
|
8725
8725
|
|
|
8726
8726
|
/**
|
|
8727
|
-
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder.
|
|
8727
|
+
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
8728
8728
|
*
|
|
8729
8729
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
8730
8730
|
*/
|
|
8731
8731
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
8732
|
-
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
8732
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
|
|
8733
8733
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
8734
|
-
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
8734
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
|
|
8735
8735
|
readonly writable: WritableStream<string>;
|
|
8736
8736
|
}
|
|
8737
8737
|
|
|
@@ -8832,13 +8832,13 @@ declare var TextMetrics: {
|
|
|
8832
8832
|
*/
|
|
8833
8833
|
interface TransformStream<I = any, O = any> {
|
|
8834
8834
|
/**
|
|
8835
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
8835
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
|
|
8836
8836
|
*
|
|
8837
8837
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
8838
8838
|
*/
|
|
8839
8839
|
readonly readable: ReadableStream<O>;
|
|
8840
8840
|
/**
|
|
8841
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
8841
|
+
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream. This stream accepts input data that will be transformed and emitted to the readable stream.
|
|
8842
8842
|
*
|
|
8843
8843
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
8844
8844
|
*/
|
|
@@ -12315,7 +12315,7 @@ interface WorkerGlobalScopeEventMap {
|
|
|
12315
12315
|
*/
|
|
12316
12316
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
12317
12317
|
/**
|
|
12318
|
-
* The **`location`**
|
|
12318
|
+
* The read-only **`location`** property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
12319
12319
|
*
|
|
12320
12320
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
12321
12321
|
*/
|
|
@@ -13296,7 +13296,7 @@ declare function postMessage(message: any, options?: StructuredSerializeOptions)
|
|
|
13296
13296
|
*/
|
|
13297
13297
|
declare function dispatchEvent(event: Event): boolean;
|
|
13298
13298
|
/**
|
|
13299
|
-
* The **`location`**
|
|
13299
|
+
* The read-only **`location`** property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
13300
13300
|
*
|
|
13301
13301
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
13302
13302
|
*/
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -1088,8 +1088,8 @@ interface WebTransportErrorOptions {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
1090
|
interface WebTransportHash {
|
|
1091
|
-
algorithm
|
|
1092
|
-
value
|
|
1091
|
+
algorithm: string;
|
|
1092
|
+
value: BufferSource;
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
1095
|
interface WebTransportOptions {
|
|
@@ -2665,14 +2665,14 @@ declare var CloseEvent: {
|
|
|
2665
2665
|
};
|
|
2666
2666
|
|
|
2667
2667
|
/**
|
|
2668
|
-
* The **`CompressionStream`** interface of the Compression Streams API
|
|
2668
|
+
* The **`CompressionStream`** interface of the Compression Streams API compresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
2669
2669
|
*
|
|
2670
2670
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2671
2671
|
*/
|
|
2672
2672
|
interface CompressionStream extends GenericTransformStream {
|
|
2673
|
-
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2673
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
|
|
2674
2674
|
readonly readable: ReadableStream<Uint8Array>;
|
|
2675
|
-
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2675
|
+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream that accepts uncompressed data to be compressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
2676
2676
|
readonly writable: WritableStream<BufferSource>;
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
@@ -3589,14 +3589,14 @@ declare var DOMStringList: {
|
|
|
3589
3589
|
};
|
|
3590
3590
|
|
|
3591
3591
|
/**
|
|
3592
|
-
* The **`DecompressionStream`** interface of the Compression Streams API
|
|
3592
|
+
* The **`DecompressionStream`** interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
3593
3593
|
*
|
|
3594
3594
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
3595
3595
|
*/
|
|
3596
3596
|
interface DecompressionStream extends GenericTransformStream {
|
|
3597
|
-
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
3597
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
|
|
3598
3598
|
readonly readable: ReadableStream<Uint8Array>;
|
|
3599
|
-
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
3599
|
+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream that accepts compressed data to be decompressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
3600
3600
|
readonly writable: WritableStream<BufferSource>;
|
|
3601
3601
|
}
|
|
3602
3602
|
|
|
@@ -7181,7 +7181,7 @@ interface PushMessageData {
|
|
|
7181
7181
|
*/
|
|
7182
7182
|
blob(): Blob;
|
|
7183
7183
|
/**
|
|
7184
|
-
* The **`bytes()`** method of the PushMessageData interface extracts push message data as
|
|
7184
|
+
* The **`bytes()`** method of the PushMessageData interface extracts push message data as a Uint8Array object.
|
|
7185
7185
|
*
|
|
7186
7186
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes)
|
|
7187
7187
|
*/
|
|
@@ -8670,14 +8670,14 @@ interface TextDecoderCommon {
|
|
|
8670
8670
|
}
|
|
8671
8671
|
|
|
8672
8672
|
/**
|
|
8673
|
-
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder.
|
|
8673
|
+
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
8674
8674
|
*
|
|
8675
8675
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
8676
8676
|
*/
|
|
8677
8677
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
8678
|
-
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
8678
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
|
|
8679
8679
|
readonly readable: ReadableStream<string>;
|
|
8680
|
-
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
8680
|
+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream that accepts binary data, in the form of ArrayBuffer, TypedArray, or DataView chunks (SharedArrayBuffer and its views are also allowed), to be decoded into strings. */
|
|
8681
8681
|
readonly writable: WritableStream<BufferSource>;
|
|
8682
8682
|
}
|
|
8683
8683
|
|
|
@@ -8721,14 +8721,14 @@ interface TextEncoderCommon {
|
|
|
8721
8721
|
}
|
|
8722
8722
|
|
|
8723
8723
|
/**
|
|
8724
|
-
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder.
|
|
8724
|
+
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
8725
8725
|
*
|
|
8726
8726
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
8727
8727
|
*/
|
|
8728
8728
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
8729
|
-
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
8729
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
|
|
8730
8730
|
readonly readable: ReadableStream<Uint8Array>;
|
|
8731
|
-
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
8731
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
|
|
8732
8732
|
readonly writable: WritableStream<string>;
|
|
8733
8733
|
}
|
|
8734
8734
|
|
|
@@ -8829,13 +8829,13 @@ declare var TextMetrics: {
|
|
|
8829
8829
|
*/
|
|
8830
8830
|
interface TransformStream<I = any, O = any> {
|
|
8831
8831
|
/**
|
|
8832
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
8832
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
|
|
8833
8833
|
*
|
|
8834
8834
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
8835
8835
|
*/
|
|
8836
8836
|
readonly readable: ReadableStream<O>;
|
|
8837
8837
|
/**
|
|
8838
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
8838
|
+
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream. This stream accepts input data that will be transformed and emitted to the readable stream.
|
|
8839
8839
|
*
|
|
8840
8840
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
8841
8841
|
*/
|
|
@@ -12312,7 +12312,7 @@ interface WorkerGlobalScopeEventMap {
|
|
|
12312
12312
|
*/
|
|
12313
12313
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
12314
12314
|
/**
|
|
12315
|
-
* The **`location`**
|
|
12315
|
+
* The read-only **`location`** property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
12316
12316
|
*
|
|
12317
12317
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
12318
12318
|
*/
|
|
@@ -13293,7 +13293,7 @@ declare function postMessage(message: any, options?: StructuredSerializeOptions)
|
|
|
13293
13293
|
*/
|
|
13294
13294
|
declare function dispatchEvent(event: Event): boolean;
|
|
13295
13295
|
/**
|
|
13296
|
-
* The **`location`**
|
|
13296
|
+
* The read-only **`location`** property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
13297
13297
|
*
|
|
13298
13298
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
13299
13299
|
*/
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -1088,8 +1088,8 @@ interface WebTransportErrorOptions {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
1090
|
interface WebTransportHash {
|
|
1091
|
-
algorithm
|
|
1092
|
-
value
|
|
1091
|
+
algorithm: string;
|
|
1092
|
+
value: BufferSource;
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
1095
|
interface WebTransportOptions {
|
|
@@ -2665,14 +2665,14 @@ declare var CloseEvent: {
|
|
|
2665
2665
|
};
|
|
2666
2666
|
|
|
2667
2667
|
/**
|
|
2668
|
-
* The **`CompressionStream`** interface of the Compression Streams API
|
|
2668
|
+
* The **`CompressionStream`** interface of the Compression Streams API compresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
2669
2669
|
*
|
|
2670
2670
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2671
2671
|
*/
|
|
2672
2672
|
interface CompressionStream extends GenericTransformStream {
|
|
2673
|
-
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2673
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
|
|
2674
2674
|
readonly readable: ReadableStream<Uint8Array>;
|
|
2675
|
-
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2675
|
+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream that accepts uncompressed data to be compressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
2676
2676
|
readonly writable: WritableStream<BufferSource>;
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
@@ -3589,14 +3589,14 @@ declare var DOMStringList: {
|
|
|
3589
3589
|
};
|
|
3590
3590
|
|
|
3591
3591
|
/**
|
|
3592
|
-
* The **`DecompressionStream`** interface of the Compression Streams API
|
|
3592
|
+
* The **`DecompressionStream`** interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
3593
3593
|
*
|
|
3594
3594
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
3595
3595
|
*/
|
|
3596
3596
|
interface DecompressionStream extends GenericTransformStream {
|
|
3597
|
-
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
3597
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
|
|
3598
3598
|
readonly readable: ReadableStream<Uint8Array>;
|
|
3599
|
-
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
3599
|
+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream that accepts compressed data to be decompressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
3600
3600
|
readonly writable: WritableStream<BufferSource>;
|
|
3601
3601
|
}
|
|
3602
3602
|
|
|
@@ -7181,7 +7181,7 @@ interface PushMessageData {
|
|
|
7181
7181
|
*/
|
|
7182
7182
|
blob(): Blob;
|
|
7183
7183
|
/**
|
|
7184
|
-
* The **`bytes()`** method of the PushMessageData interface extracts push message data as
|
|
7184
|
+
* The **`bytes()`** method of the PushMessageData interface extracts push message data as a Uint8Array object.
|
|
7185
7185
|
*
|
|
7186
7186
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes)
|
|
7187
7187
|
*/
|
|
@@ -8670,14 +8670,14 @@ interface TextDecoderCommon {
|
|
|
8670
8670
|
}
|
|
8671
8671
|
|
|
8672
8672
|
/**
|
|
8673
|
-
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder.
|
|
8673
|
+
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
8674
8674
|
*
|
|
8675
8675
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
8676
8676
|
*/
|
|
8677
8677
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
8678
|
-
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
8678
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
|
|
8679
8679
|
readonly readable: ReadableStream<string>;
|
|
8680
|
-
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
8680
|
+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream that accepts binary data, in the form of ArrayBuffer, TypedArray, or DataView chunks (SharedArrayBuffer and its views are also allowed), to be decoded into strings. */
|
|
8681
8681
|
readonly writable: WritableStream<BufferSource>;
|
|
8682
8682
|
}
|
|
8683
8683
|
|
|
@@ -8721,14 +8721,14 @@ interface TextEncoderCommon {
|
|
|
8721
8721
|
}
|
|
8722
8722
|
|
|
8723
8723
|
/**
|
|
8724
|
-
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder.
|
|
8724
|
+
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
8725
8725
|
*
|
|
8726
8726
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
8727
8727
|
*/
|
|
8728
8728
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
8729
|
-
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
8729
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
|
|
8730
8730
|
readonly readable: ReadableStream<Uint8Array>;
|
|
8731
|
-
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
8731
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
|
|
8732
8732
|
readonly writable: WritableStream<string>;
|
|
8733
8733
|
}
|
|
8734
8734
|
|
|
@@ -8829,13 +8829,13 @@ declare var TextMetrics: {
|
|
|
8829
8829
|
*/
|
|
8830
8830
|
interface TransformStream<I = any, O = any> {
|
|
8831
8831
|
/**
|
|
8832
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
8832
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
|
|
8833
8833
|
*
|
|
8834
8834
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
8835
8835
|
*/
|
|
8836
8836
|
readonly readable: ReadableStream<O>;
|
|
8837
8837
|
/**
|
|
8838
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
8838
|
+
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream. This stream accepts input data that will be transformed and emitted to the readable stream.
|
|
8839
8839
|
*
|
|
8840
8840
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
8841
8841
|
*/
|
|
@@ -12312,7 +12312,7 @@ interface WorkerGlobalScopeEventMap {
|
|
|
12312
12312
|
*/
|
|
12313
12313
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
12314
12314
|
/**
|
|
12315
|
-
* The **`location`**
|
|
12315
|
+
* The read-only **`location`** property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
12316
12316
|
*
|
|
12317
12317
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
12318
12318
|
*/
|
|
@@ -13293,7 +13293,7 @@ declare function postMessage(message: any, options?: StructuredSerializeOptions)
|
|
|
13293
13293
|
*/
|
|
13294
13294
|
declare function dispatchEvent(event: Event): boolean;
|
|
13295
13295
|
/**
|
|
13296
|
-
* The **`location`**
|
|
13296
|
+
* The read-only **`location`** property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
13297
13297
|
*
|
|
13298
13298
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
13299
13299
|
*/
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -1088,8 +1088,8 @@ interface WebTransportErrorOptions {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
1090
|
interface WebTransportHash {
|
|
1091
|
-
algorithm
|
|
1092
|
-
value
|
|
1091
|
+
algorithm: string;
|
|
1092
|
+
value: BufferSource;
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
1095
|
interface WebTransportOptions {
|
|
@@ -2665,14 +2665,14 @@ declare var CloseEvent: {
|
|
|
2665
2665
|
};
|
|
2666
2666
|
|
|
2667
2667
|
/**
|
|
2668
|
-
* The **`CompressionStream`** interface of the Compression Streams API
|
|
2668
|
+
* The **`CompressionStream`** interface of the Compression Streams API compresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
2669
2669
|
*
|
|
2670
2670
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2671
2671
|
*/
|
|
2672
2672
|
interface CompressionStream extends GenericTransformStream {
|
|
2673
|
-
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2673
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
|
|
2674
2674
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2675
|
-
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2675
|
+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream that accepts uncompressed data to be compressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
2676
2676
|
readonly writable: WritableStream<BufferSource>;
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
@@ -3589,14 +3589,14 @@ declare var DOMStringList: {
|
|
|
3589
3589
|
};
|
|
3590
3590
|
|
|
3591
3591
|
/**
|
|
3592
|
-
* The **`DecompressionStream`** interface of the Compression Streams API
|
|
3592
|
+
* The **`DecompressionStream`** interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
3593
3593
|
*
|
|
3594
3594
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
3595
3595
|
*/
|
|
3596
3596
|
interface DecompressionStream extends GenericTransformStream {
|
|
3597
|
-
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
3597
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
|
|
3598
3598
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
3599
|
-
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
3599
|
+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream that accepts compressed data to be decompressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
3600
3600
|
readonly writable: WritableStream<BufferSource>;
|
|
3601
3601
|
}
|
|
3602
3602
|
|
|
@@ -7181,7 +7181,7 @@ interface PushMessageData {
|
|
|
7181
7181
|
*/
|
|
7182
7182
|
blob(): Blob;
|
|
7183
7183
|
/**
|
|
7184
|
-
* The **`bytes()`** method of the PushMessageData interface extracts push message data as
|
|
7184
|
+
* The **`bytes()`** method of the PushMessageData interface extracts push message data as a Uint8Array object.
|
|
7185
7185
|
*
|
|
7186
7186
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes)
|
|
7187
7187
|
*/
|
|
@@ -8670,14 +8670,14 @@ interface TextDecoderCommon {
|
|
|
8670
8670
|
}
|
|
8671
8671
|
|
|
8672
8672
|
/**
|
|
8673
|
-
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder.
|
|
8673
|
+
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
8674
8674
|
*
|
|
8675
8675
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
8676
8676
|
*/
|
|
8677
8677
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
8678
|
-
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
8678
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
|
|
8679
8679
|
readonly readable: ReadableStream<string>;
|
|
8680
|
-
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
8680
|
+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream that accepts binary data, in the form of ArrayBuffer, TypedArray, or DataView chunks (SharedArrayBuffer and its views are also allowed), to be decoded into strings. */
|
|
8681
8681
|
readonly writable: WritableStream<BufferSource>;
|
|
8682
8682
|
}
|
|
8683
8683
|
|
|
@@ -8721,14 +8721,14 @@ interface TextEncoderCommon {
|
|
|
8721
8721
|
}
|
|
8722
8722
|
|
|
8723
8723
|
/**
|
|
8724
|
-
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder.
|
|
8724
|
+
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
8725
8725
|
*
|
|
8726
8726
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
8727
8727
|
*/
|
|
8728
8728
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
8729
|
-
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
8729
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
|
|
8730
8730
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
8731
|
-
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
8731
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
|
|
8732
8732
|
readonly writable: WritableStream<string>;
|
|
8733
8733
|
}
|
|
8734
8734
|
|
|
@@ -8829,13 +8829,13 @@ declare var TextMetrics: {
|
|
|
8829
8829
|
*/
|
|
8830
8830
|
interface TransformStream<I = any, O = any> {
|
|
8831
8831
|
/**
|
|
8832
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
8832
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
|
|
8833
8833
|
*
|
|
8834
8834
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
8835
8835
|
*/
|
|
8836
8836
|
readonly readable: ReadableStream<O>;
|
|
8837
8837
|
/**
|
|
8838
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
8838
|
+
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream. This stream accepts input data that will be transformed and emitted to the readable stream.
|
|
8839
8839
|
*
|
|
8840
8840
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
8841
8841
|
*/
|
|
@@ -12312,7 +12312,7 @@ interface WorkerGlobalScopeEventMap {
|
|
|
12312
12312
|
*/
|
|
12313
12313
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
12314
12314
|
/**
|
|
12315
|
-
* The **`location`**
|
|
12315
|
+
* The read-only **`location`** property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
12316
12316
|
*
|
|
12317
12317
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
12318
12318
|
*/
|
|
@@ -13293,7 +13293,7 @@ declare function postMessage(message: any, options?: StructuredSerializeOptions)
|
|
|
13293
13293
|
*/
|
|
13294
13294
|
declare function dispatchEvent(event: Event): boolean;
|
|
13295
13295
|
/**
|
|
13296
|
-
* The **`location`**
|
|
13296
|
+
* The read-only **`location`** property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
13297
13297
|
*
|
|
13298
13298
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
13299
13299
|
*/
|