@types/sharedworker 0.0.195 → 0.0.197
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
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.197 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.197.
|
package/index.d.ts
CHANGED
|
@@ -783,8 +783,8 @@ interface WebTransportErrorOptions {
|
|
|
783
783
|
}
|
|
784
784
|
|
|
785
785
|
interface WebTransportHash {
|
|
786
|
-
algorithm
|
|
787
|
-
value
|
|
786
|
+
algorithm: string;
|
|
787
|
+
value: BufferSource;
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
interface WebTransportOptions {
|
|
@@ -2055,14 +2055,14 @@ declare var CloseEvent: {
|
|
|
2055
2055
|
};
|
|
2056
2056
|
|
|
2057
2057
|
/**
|
|
2058
|
-
* The **`CompressionStream`** interface of the Compression Streams API
|
|
2058
|
+
* 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.
|
|
2059
2059
|
*
|
|
2060
2060
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2061
2061
|
*/
|
|
2062
2062
|
interface CompressionStream extends GenericTransformStream {
|
|
2063
|
-
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2063
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
|
|
2064
2064
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2065
|
-
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2065
|
+
/** 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. */
|
|
2066
2066
|
readonly writable: WritableStream<BufferSource>;
|
|
2067
2067
|
}
|
|
2068
2068
|
|
|
@@ -2905,14 +2905,14 @@ declare var DOMStringList: {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
|
|
2907
2907
|
/**
|
|
2908
|
-
* The **`DecompressionStream`** interface of the Compression Streams API
|
|
2908
|
+
* 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.
|
|
2909
2909
|
*
|
|
2910
2910
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
2911
2911
|
*/
|
|
2912
2912
|
interface DecompressionStream extends GenericTransformStream {
|
|
2913
|
-
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
2913
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
|
|
2914
2914
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2915
|
-
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
2915
|
+
/** 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. */
|
|
2916
2916
|
readonly writable: WritableStream<BufferSource>;
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
@@ -7051,14 +7051,14 @@ interface TextDecoderCommon {
|
|
|
7051
7051
|
}
|
|
7052
7052
|
|
|
7053
7053
|
/**
|
|
7054
|
-
* 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.
|
|
7054
|
+
* 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.
|
|
7055
7055
|
*
|
|
7056
7056
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
7057
7057
|
*/
|
|
7058
7058
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
7059
|
-
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
7059
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
|
|
7060
7060
|
readonly readable: ReadableStream<string>;
|
|
7061
|
-
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
7061
|
+
/** 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. */
|
|
7062
7062
|
readonly writable: WritableStream<BufferSource>;
|
|
7063
7063
|
}
|
|
7064
7064
|
|
|
@@ -7102,14 +7102,14 @@ interface TextEncoderCommon {
|
|
|
7102
7102
|
}
|
|
7103
7103
|
|
|
7104
7104
|
/**
|
|
7105
|
-
* 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.
|
|
7105
|
+
* 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.
|
|
7106
7106
|
*
|
|
7107
7107
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
7108
7108
|
*/
|
|
7109
7109
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
7110
|
-
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
7110
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
|
|
7111
7111
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
7112
|
-
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
7112
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
|
|
7113
7113
|
readonly writable: WritableStream<string>;
|
|
7114
7114
|
}
|
|
7115
7115
|
|
|
@@ -7210,13 +7210,13 @@ declare var TextMetrics: {
|
|
|
7210
7210
|
*/
|
|
7211
7211
|
interface TransformStream<I = any, O = any> {
|
|
7212
7212
|
/**
|
|
7213
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
7213
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
|
|
7214
7214
|
*
|
|
7215
7215
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
7216
7216
|
*/
|
|
7217
7217
|
readonly readable: ReadableStream<O>;
|
|
7218
7218
|
/**
|
|
7219
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
7219
|
+
* 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.
|
|
7220
7220
|
*
|
|
7221
7221
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
7222
7222
|
*/
|
|
@@ -9396,6 +9396,7 @@ interface WebGLRenderingContextBase {
|
|
|
9396
9396
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
|
|
9397
9397
|
getError(): GLenum;
|
|
9398
9398
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
|
|
9399
|
+
getExtension(name: string): any;
|
|
9399
9400
|
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
9400
9401
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
9401
9402
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
@@ -9430,7 +9431,6 @@ interface WebGLRenderingContextBase {
|
|
|
9430
9431
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
9431
9432
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
9432
9433
|
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
9433
|
-
getExtension(name: string): any;
|
|
9434
9434
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
|
|
9435
9435
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
9436
9436
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
|
|
@@ -10371,7 +10371,7 @@ interface WorkerGlobalScopeEventMap {
|
|
|
10371
10371
|
*/
|
|
10372
10372
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
10373
10373
|
/**
|
|
10374
|
-
* The **`location`**
|
|
10374
|
+
* 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.
|
|
10375
10375
|
*
|
|
10376
10376
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
10377
10377
|
*/
|
|
@@ -11321,7 +11321,7 @@ declare function close(): void;
|
|
|
11321
11321
|
*/
|
|
11322
11322
|
declare function dispatchEvent(event: Event): boolean;
|
|
11323
11323
|
/**
|
|
11324
|
-
* The **`location`**
|
|
11324
|
+
* 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.
|
|
11325
11325
|
*
|
|
11326
11326
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
11327
11327
|
*/
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -780,8 +780,8 @@ interface WebTransportErrorOptions {
|
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
interface WebTransportHash {
|
|
783
|
-
algorithm
|
|
784
|
-
value
|
|
783
|
+
algorithm: string;
|
|
784
|
+
value: BufferSource;
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
interface WebTransportOptions {
|
|
@@ -2052,14 +2052,14 @@ declare var CloseEvent: {
|
|
|
2052
2052
|
};
|
|
2053
2053
|
|
|
2054
2054
|
/**
|
|
2055
|
-
* The **`CompressionStream`** interface of the Compression Streams API
|
|
2055
|
+
* 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.
|
|
2056
2056
|
*
|
|
2057
2057
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2058
2058
|
*/
|
|
2059
2059
|
interface CompressionStream extends GenericTransformStream {
|
|
2060
|
-
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2060
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
|
|
2061
2061
|
readonly readable: ReadableStream<Uint8Array>;
|
|
2062
|
-
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2062
|
+
/** 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. */
|
|
2063
2063
|
readonly writable: WritableStream<BufferSource>;
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
@@ -2902,14 +2902,14 @@ declare var DOMStringList: {
|
|
|
2902
2902
|
};
|
|
2903
2903
|
|
|
2904
2904
|
/**
|
|
2905
|
-
* The **`DecompressionStream`** interface of the Compression Streams API
|
|
2905
|
+
* 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.
|
|
2906
2906
|
*
|
|
2907
2907
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
2908
2908
|
*/
|
|
2909
2909
|
interface DecompressionStream extends GenericTransformStream {
|
|
2910
|
-
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
2910
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
|
|
2911
2911
|
readonly readable: ReadableStream<Uint8Array>;
|
|
2912
|
-
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
2912
|
+
/** 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. */
|
|
2913
2913
|
readonly writable: WritableStream<BufferSource>;
|
|
2914
2914
|
}
|
|
2915
2915
|
|
|
@@ -7048,14 +7048,14 @@ interface TextDecoderCommon {
|
|
|
7048
7048
|
}
|
|
7049
7049
|
|
|
7050
7050
|
/**
|
|
7051
|
-
* 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.
|
|
7051
|
+
* 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.
|
|
7052
7052
|
*
|
|
7053
7053
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
7054
7054
|
*/
|
|
7055
7055
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
7056
|
-
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
7056
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
|
|
7057
7057
|
readonly readable: ReadableStream<string>;
|
|
7058
|
-
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
7058
|
+
/** 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. */
|
|
7059
7059
|
readonly writable: WritableStream<BufferSource>;
|
|
7060
7060
|
}
|
|
7061
7061
|
|
|
@@ -7099,14 +7099,14 @@ interface TextEncoderCommon {
|
|
|
7099
7099
|
}
|
|
7100
7100
|
|
|
7101
7101
|
/**
|
|
7102
|
-
* 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.
|
|
7102
|
+
* 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.
|
|
7103
7103
|
*
|
|
7104
7104
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
7105
7105
|
*/
|
|
7106
7106
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
7107
|
-
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
7107
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
|
|
7108
7108
|
readonly readable: ReadableStream<Uint8Array>;
|
|
7109
|
-
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
7109
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
|
|
7110
7110
|
readonly writable: WritableStream<string>;
|
|
7111
7111
|
}
|
|
7112
7112
|
|
|
@@ -7207,13 +7207,13 @@ declare var TextMetrics: {
|
|
|
7207
7207
|
*/
|
|
7208
7208
|
interface TransformStream<I = any, O = any> {
|
|
7209
7209
|
/**
|
|
7210
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
7210
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
|
|
7211
7211
|
*
|
|
7212
7212
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
7213
7213
|
*/
|
|
7214
7214
|
readonly readable: ReadableStream<O>;
|
|
7215
7215
|
/**
|
|
7216
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
7216
|
+
* 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.
|
|
7217
7217
|
*
|
|
7218
7218
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
7219
7219
|
*/
|
|
@@ -9393,6 +9393,7 @@ interface WebGLRenderingContextBase {
|
|
|
9393
9393
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
|
|
9394
9394
|
getError(): GLenum;
|
|
9395
9395
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
|
|
9396
|
+
getExtension(name: string): any;
|
|
9396
9397
|
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
9397
9398
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
9398
9399
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
@@ -9427,7 +9428,6 @@ interface WebGLRenderingContextBase {
|
|
|
9427
9428
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
9428
9429
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
9429
9430
|
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
9430
|
-
getExtension(name: string): any;
|
|
9431
9431
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
|
|
9432
9432
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
9433
9433
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
|
|
@@ -10368,7 +10368,7 @@ interface WorkerGlobalScopeEventMap {
|
|
|
10368
10368
|
*/
|
|
10369
10369
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
10370
10370
|
/**
|
|
10371
|
-
* The **`location`**
|
|
10371
|
+
* 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.
|
|
10372
10372
|
*
|
|
10373
10373
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
10374
10374
|
*/
|
|
@@ -11318,7 +11318,7 @@ declare function close(): void;
|
|
|
11318
11318
|
*/
|
|
11319
11319
|
declare function dispatchEvent(event: Event): boolean;
|
|
11320
11320
|
/**
|
|
11321
|
-
* The **`location`**
|
|
11321
|
+
* 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.
|
|
11322
11322
|
*
|
|
11323
11323
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
11324
11324
|
*/
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -780,8 +780,8 @@ interface WebTransportErrorOptions {
|
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
interface WebTransportHash {
|
|
783
|
-
algorithm
|
|
784
|
-
value
|
|
783
|
+
algorithm: string;
|
|
784
|
+
value: BufferSource;
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
interface WebTransportOptions {
|
|
@@ -2052,14 +2052,14 @@ declare var CloseEvent: {
|
|
|
2052
2052
|
};
|
|
2053
2053
|
|
|
2054
2054
|
/**
|
|
2055
|
-
* The **`CompressionStream`** interface of the Compression Streams API
|
|
2055
|
+
* 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.
|
|
2056
2056
|
*
|
|
2057
2057
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2058
2058
|
*/
|
|
2059
2059
|
interface CompressionStream extends GenericTransformStream {
|
|
2060
|
-
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2060
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
|
|
2061
2061
|
readonly readable: ReadableStream<Uint8Array>;
|
|
2062
|
-
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2062
|
+
/** 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. */
|
|
2063
2063
|
readonly writable: WritableStream<BufferSource>;
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
@@ -2902,14 +2902,14 @@ declare var DOMStringList: {
|
|
|
2902
2902
|
};
|
|
2903
2903
|
|
|
2904
2904
|
/**
|
|
2905
|
-
* The **`DecompressionStream`** interface of the Compression Streams API
|
|
2905
|
+
* 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.
|
|
2906
2906
|
*
|
|
2907
2907
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
2908
2908
|
*/
|
|
2909
2909
|
interface DecompressionStream extends GenericTransformStream {
|
|
2910
|
-
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
2910
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
|
|
2911
2911
|
readonly readable: ReadableStream<Uint8Array>;
|
|
2912
|
-
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
2912
|
+
/** 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. */
|
|
2913
2913
|
readonly writable: WritableStream<BufferSource>;
|
|
2914
2914
|
}
|
|
2915
2915
|
|
|
@@ -7048,14 +7048,14 @@ interface TextDecoderCommon {
|
|
|
7048
7048
|
}
|
|
7049
7049
|
|
|
7050
7050
|
/**
|
|
7051
|
-
* 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.
|
|
7051
|
+
* 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.
|
|
7052
7052
|
*
|
|
7053
7053
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
7054
7054
|
*/
|
|
7055
7055
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
7056
|
-
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
7056
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
|
|
7057
7057
|
readonly readable: ReadableStream<string>;
|
|
7058
|
-
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
7058
|
+
/** 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. */
|
|
7059
7059
|
readonly writable: WritableStream<BufferSource>;
|
|
7060
7060
|
}
|
|
7061
7061
|
|
|
@@ -7099,14 +7099,14 @@ interface TextEncoderCommon {
|
|
|
7099
7099
|
}
|
|
7100
7100
|
|
|
7101
7101
|
/**
|
|
7102
|
-
* 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.
|
|
7102
|
+
* 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.
|
|
7103
7103
|
*
|
|
7104
7104
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
7105
7105
|
*/
|
|
7106
7106
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
7107
|
-
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
7107
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
|
|
7108
7108
|
readonly readable: ReadableStream<Uint8Array>;
|
|
7109
|
-
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
7109
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
|
|
7110
7110
|
readonly writable: WritableStream<string>;
|
|
7111
7111
|
}
|
|
7112
7112
|
|
|
@@ -7207,13 +7207,13 @@ declare var TextMetrics: {
|
|
|
7207
7207
|
*/
|
|
7208
7208
|
interface TransformStream<I = any, O = any> {
|
|
7209
7209
|
/**
|
|
7210
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
7210
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
|
|
7211
7211
|
*
|
|
7212
7212
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
7213
7213
|
*/
|
|
7214
7214
|
readonly readable: ReadableStream<O>;
|
|
7215
7215
|
/**
|
|
7216
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
7216
|
+
* 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.
|
|
7217
7217
|
*
|
|
7218
7218
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
7219
7219
|
*/
|
|
@@ -9393,6 +9393,7 @@ interface WebGLRenderingContextBase {
|
|
|
9393
9393
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
|
|
9394
9394
|
getError(): GLenum;
|
|
9395
9395
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
|
|
9396
|
+
getExtension(name: string): any;
|
|
9396
9397
|
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
9397
9398
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
9398
9399
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
@@ -9427,7 +9428,6 @@ interface WebGLRenderingContextBase {
|
|
|
9427
9428
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
9428
9429
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
9429
9430
|
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
9430
|
-
getExtension(name: string): any;
|
|
9431
9431
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
|
|
9432
9432
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
9433
9433
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
|
|
@@ -10368,7 +10368,7 @@ interface WorkerGlobalScopeEventMap {
|
|
|
10368
10368
|
*/
|
|
10369
10369
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
10370
10370
|
/**
|
|
10371
|
-
* The **`location`**
|
|
10371
|
+
* 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.
|
|
10372
10372
|
*
|
|
10373
10373
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
10374
10374
|
*/
|
|
@@ -11318,7 +11318,7 @@ declare function close(): void;
|
|
|
11318
11318
|
*/
|
|
11319
11319
|
declare function dispatchEvent(event: Event): boolean;
|
|
11320
11320
|
/**
|
|
11321
|
-
* The **`location`**
|
|
11321
|
+
* 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.
|
|
11322
11322
|
*
|
|
11323
11323
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
11324
11324
|
*/
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -780,8 +780,8 @@ interface WebTransportErrorOptions {
|
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
interface WebTransportHash {
|
|
783
|
-
algorithm
|
|
784
|
-
value
|
|
783
|
+
algorithm: string;
|
|
784
|
+
value: BufferSource;
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
interface WebTransportOptions {
|
|
@@ -2052,14 +2052,14 @@ declare var CloseEvent: {
|
|
|
2052
2052
|
};
|
|
2053
2053
|
|
|
2054
2054
|
/**
|
|
2055
|
-
* The **`CompressionStream`** interface of the Compression Streams API
|
|
2055
|
+
* 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.
|
|
2056
2056
|
*
|
|
2057
2057
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2058
2058
|
*/
|
|
2059
2059
|
interface CompressionStream extends GenericTransformStream {
|
|
2060
|
-
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2060
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
|
|
2061
2061
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2062
|
-
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2062
|
+
/** 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. */
|
|
2063
2063
|
readonly writable: WritableStream<BufferSource>;
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
@@ -2902,14 +2902,14 @@ declare var DOMStringList: {
|
|
|
2902
2902
|
};
|
|
2903
2903
|
|
|
2904
2904
|
/**
|
|
2905
|
-
* The **`DecompressionStream`** interface of the Compression Streams API
|
|
2905
|
+
* 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.
|
|
2906
2906
|
*
|
|
2907
2907
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
2908
2908
|
*/
|
|
2909
2909
|
interface DecompressionStream extends GenericTransformStream {
|
|
2910
|
-
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
2910
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
|
|
2911
2911
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2912
|
-
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
2912
|
+
/** 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. */
|
|
2913
2913
|
readonly writable: WritableStream<BufferSource>;
|
|
2914
2914
|
}
|
|
2915
2915
|
|
|
@@ -7048,14 +7048,14 @@ interface TextDecoderCommon {
|
|
|
7048
7048
|
}
|
|
7049
7049
|
|
|
7050
7050
|
/**
|
|
7051
|
-
* 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.
|
|
7051
|
+
* 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.
|
|
7052
7052
|
*
|
|
7053
7053
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
7054
7054
|
*/
|
|
7055
7055
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
7056
|
-
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
7056
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
|
|
7057
7057
|
readonly readable: ReadableStream<string>;
|
|
7058
|
-
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
7058
|
+
/** 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. */
|
|
7059
7059
|
readonly writable: WritableStream<BufferSource>;
|
|
7060
7060
|
}
|
|
7061
7061
|
|
|
@@ -7099,14 +7099,14 @@ interface TextEncoderCommon {
|
|
|
7099
7099
|
}
|
|
7100
7100
|
|
|
7101
7101
|
/**
|
|
7102
|
-
* 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.
|
|
7102
|
+
* 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.
|
|
7103
7103
|
*
|
|
7104
7104
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
7105
7105
|
*/
|
|
7106
7106
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
7107
|
-
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
7107
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
|
|
7108
7108
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
7109
|
-
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
7109
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
|
|
7110
7110
|
readonly writable: WritableStream<string>;
|
|
7111
7111
|
}
|
|
7112
7112
|
|
|
@@ -7207,13 +7207,13 @@ declare var TextMetrics: {
|
|
|
7207
7207
|
*/
|
|
7208
7208
|
interface TransformStream<I = any, O = any> {
|
|
7209
7209
|
/**
|
|
7210
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
7210
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
|
|
7211
7211
|
*
|
|
7212
7212
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
7213
7213
|
*/
|
|
7214
7214
|
readonly readable: ReadableStream<O>;
|
|
7215
7215
|
/**
|
|
7216
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
7216
|
+
* 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.
|
|
7217
7217
|
*
|
|
7218
7218
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
7219
7219
|
*/
|
|
@@ -9393,6 +9393,7 @@ interface WebGLRenderingContextBase {
|
|
|
9393
9393
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
|
|
9394
9394
|
getError(): GLenum;
|
|
9395
9395
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
|
|
9396
|
+
getExtension(name: string): any;
|
|
9396
9397
|
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
9397
9398
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
9398
9399
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
@@ -9427,7 +9428,6 @@ interface WebGLRenderingContextBase {
|
|
|
9427
9428
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
9428
9429
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
9429
9430
|
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
9430
|
-
getExtension(name: string): any;
|
|
9431
9431
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
|
|
9432
9432
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
9433
9433
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
|
|
@@ -10368,7 +10368,7 @@ interface WorkerGlobalScopeEventMap {
|
|
|
10368
10368
|
*/
|
|
10369
10369
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
10370
10370
|
/**
|
|
10371
|
-
* The **`location`**
|
|
10371
|
+
* 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.
|
|
10372
10372
|
*
|
|
10373
10373
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
10374
10374
|
*/
|
|
@@ -11318,7 +11318,7 @@ declare function close(): void;
|
|
|
11318
11318
|
*/
|
|
11319
11319
|
declare function dispatchEvent(event: Event): boolean;
|
|
11320
11320
|
/**
|
|
11321
|
-
* The **`location`**
|
|
11321
|
+
* 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.
|
|
11322
11322
|
*
|
|
11323
11323
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
11324
11324
|
*/
|