@types/sharedworker 0.0.196 → 0.0.198

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
@@ -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.196 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.196.
31
+ You can read what changed in version 0.0.198 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.198.
package/index.d.ts CHANGED
@@ -211,6 +211,7 @@ interface FontFaceDescriptors {
211
211
  stretch?: string;
212
212
  style?: string;
213
213
  unicodeRange?: string;
214
+ variationSettings?: string;
214
215
  weight?: string;
215
216
  }
216
217
 
@@ -783,8 +784,8 @@ interface WebTransportErrorOptions {
783
784
  }
784
785
 
785
786
  interface WebTransportHash {
786
- algorithm?: string;
787
- value?: BufferSource;
787
+ algorithm: string;
788
+ value: BufferSource;
788
789
  }
789
790
 
790
791
  interface WebTransportOptions {
@@ -2055,14 +2056,14 @@ declare var CloseEvent: {
2055
2056
  };
2056
2057
 
2057
2058
  /**
2058
- * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.
2059
+ * 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
2060
  *
2060
2061
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
2061
2062
  */
2062
2063
  interface CompressionStream extends GenericTransformStream {
2063
- /** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
2064
+ /** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
2064
2065
  readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
2065
- /** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
2066
+ /** 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
2067
  readonly writable: WritableStream<BufferSource>;
2067
2068
  }
2068
2069
 
@@ -2905,14 +2906,14 @@ declare var DOMStringList: {
2905
2906
  };
2906
2907
 
2907
2908
  /**
2908
- * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.
2909
+ * 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
2910
  *
2910
2911
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
2911
2912
  */
2912
2913
  interface DecompressionStream extends GenericTransformStream {
2913
- /** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
2914
+ /** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
2914
2915
  readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
2915
- /** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
2916
+ /** 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
2917
  readonly writable: WritableStream<BufferSource>;
2917
2918
  }
2918
2919
 
@@ -7051,14 +7052,14 @@ interface TextDecoderCommon {
7051
7052
  }
7052
7053
 
7053
7054
  /**
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.
7055
+ * 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
7056
  *
7056
7057
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
7057
7058
  */
7058
7059
  interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
7059
- /** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
7060
+ /** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
7060
7061
  readonly readable: ReadableStream<string>;
7061
- /** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
7062
+ /** 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
7063
  readonly writable: WritableStream<BufferSource>;
7063
7064
  }
7064
7065
 
@@ -7102,14 +7103,14 @@ interface TextEncoderCommon {
7102
7103
  }
7103
7104
 
7104
7105
  /**
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.
7106
+ * 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
7107
  *
7107
7108
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
7108
7109
  */
7109
7110
  interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
7110
- /** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
7111
+ /** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
7111
7112
  readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
7112
- /** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
7113
+ /** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
7113
7114
  readonly writable: WritableStream<string>;
7114
7115
  }
7115
7116
 
@@ -7210,13 +7211,13 @@ declare var TextMetrics: {
7210
7211
  */
7211
7212
  interface TransformStream<I = any, O = any> {
7212
7213
  /**
7213
- * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
7214
+ * 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
7215
  *
7215
7216
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
7216
7217
  */
7217
7218
  readonly readable: ReadableStream<O>;
7218
7219
  /**
7219
- * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
7220
+ * 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
7221
  *
7221
7222
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
7222
7223
  */
@@ -10371,7 +10372,7 @@ interface WorkerGlobalScopeEventMap {
10371
10372
  */
10372
10373
  interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
10373
10374
  /**
10374
- * The **`location`** read-only 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
+ * 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
10376
  *
10376
10377
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
10377
10378
  */
@@ -11321,7 +11322,7 @@ declare function close(): void;
11321
11322
  */
11322
11323
  declare function dispatchEvent(event: Event): boolean;
11323
11324
  /**
11324
- * The **`location`** read-only 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
+ * 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
11326
  *
11326
11327
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
11327
11328
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.196",
3
+ "version": "0.0.198",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -208,6 +208,7 @@ interface FontFaceDescriptors {
208
208
  stretch?: string;
209
209
  style?: string;
210
210
  unicodeRange?: string;
211
+ variationSettings?: string;
211
212
  weight?: string;
212
213
  }
213
214
 
@@ -780,8 +781,8 @@ interface WebTransportErrorOptions {
780
781
  }
781
782
 
782
783
  interface WebTransportHash {
783
- algorithm?: string;
784
- value?: BufferSource;
784
+ algorithm: string;
785
+ value: BufferSource;
785
786
  }
786
787
 
787
788
  interface WebTransportOptions {
@@ -2052,14 +2053,14 @@ declare var CloseEvent: {
2052
2053
  };
2053
2054
 
2054
2055
  /**
2055
- * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.
2056
+ * 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
2057
  *
2057
2058
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
2058
2059
  */
2059
2060
  interface CompressionStream extends GenericTransformStream {
2060
- /** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
2061
+ /** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
2061
2062
  readonly readable: ReadableStream<Uint8Array>;
2062
- /** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
2063
+ /** 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
2064
  readonly writable: WritableStream<BufferSource>;
2064
2065
  }
2065
2066
 
@@ -2902,14 +2903,14 @@ declare var DOMStringList: {
2902
2903
  };
2903
2904
 
2904
2905
  /**
2905
- * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.
2906
+ * 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
2907
  *
2907
2908
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
2908
2909
  */
2909
2910
  interface DecompressionStream extends GenericTransformStream {
2910
- /** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
2911
+ /** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
2911
2912
  readonly readable: ReadableStream<Uint8Array>;
2912
- /** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
2913
+ /** 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
2914
  readonly writable: WritableStream<BufferSource>;
2914
2915
  }
2915
2916
 
@@ -7048,14 +7049,14 @@ interface TextDecoderCommon {
7048
7049
  }
7049
7050
 
7050
7051
  /**
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.
7052
+ * 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
7053
  *
7053
7054
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
7054
7055
  */
7055
7056
  interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
7056
- /** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
7057
+ /** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
7057
7058
  readonly readable: ReadableStream<string>;
7058
- /** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
7059
+ /** 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
7060
  readonly writable: WritableStream<BufferSource>;
7060
7061
  }
7061
7062
 
@@ -7099,14 +7100,14 @@ interface TextEncoderCommon {
7099
7100
  }
7100
7101
 
7101
7102
  /**
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.
7103
+ * 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
7104
  *
7104
7105
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
7105
7106
  */
7106
7107
  interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
7107
- /** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
7108
+ /** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
7108
7109
  readonly readable: ReadableStream<Uint8Array>;
7109
- /** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
7110
+ /** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
7110
7111
  readonly writable: WritableStream<string>;
7111
7112
  }
7112
7113
 
@@ -7207,13 +7208,13 @@ declare var TextMetrics: {
7207
7208
  */
7208
7209
  interface TransformStream<I = any, O = any> {
7209
7210
  /**
7210
- * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
7211
+ * 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
7212
  *
7212
7213
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
7213
7214
  */
7214
7215
  readonly readable: ReadableStream<O>;
7215
7216
  /**
7216
- * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
7217
+ * 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
7218
  *
7218
7219
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
7219
7220
  */
@@ -10368,7 +10369,7 @@ interface WorkerGlobalScopeEventMap {
10368
10369
  */
10369
10370
  interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
10370
10371
  /**
10371
- * The **`location`** read-only 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
+ * 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
10373
  *
10373
10374
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
10374
10375
  */
@@ -11318,7 +11319,7 @@ declare function close(): void;
11318
11319
  */
11319
11320
  declare function dispatchEvent(event: Event): boolean;
11320
11321
  /**
11321
- * The **`location`** read-only 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
+ * 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
11323
  *
11323
11324
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
11324
11325
  */
package/ts5.6/index.d.ts CHANGED
@@ -208,6 +208,7 @@ interface FontFaceDescriptors {
208
208
  stretch?: string;
209
209
  style?: string;
210
210
  unicodeRange?: string;
211
+ variationSettings?: string;
211
212
  weight?: string;
212
213
  }
213
214
 
@@ -780,8 +781,8 @@ interface WebTransportErrorOptions {
780
781
  }
781
782
 
782
783
  interface WebTransportHash {
783
- algorithm?: string;
784
- value?: BufferSource;
784
+ algorithm: string;
785
+ value: BufferSource;
785
786
  }
786
787
 
787
788
  interface WebTransportOptions {
@@ -2052,14 +2053,14 @@ declare var CloseEvent: {
2052
2053
  };
2053
2054
 
2054
2055
  /**
2055
- * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.
2056
+ * 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
2057
  *
2057
2058
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
2058
2059
  */
2059
2060
  interface CompressionStream extends GenericTransformStream {
2060
- /** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
2061
+ /** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
2061
2062
  readonly readable: ReadableStream<Uint8Array>;
2062
- /** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
2063
+ /** 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
2064
  readonly writable: WritableStream<BufferSource>;
2064
2065
  }
2065
2066
 
@@ -2902,14 +2903,14 @@ declare var DOMStringList: {
2902
2903
  };
2903
2904
 
2904
2905
  /**
2905
- * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.
2906
+ * 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
2907
  *
2907
2908
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
2908
2909
  */
2909
2910
  interface DecompressionStream extends GenericTransformStream {
2910
- /** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
2911
+ /** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
2911
2912
  readonly readable: ReadableStream<Uint8Array>;
2912
- /** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
2913
+ /** 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
2914
  readonly writable: WritableStream<BufferSource>;
2914
2915
  }
2915
2916
 
@@ -7048,14 +7049,14 @@ interface TextDecoderCommon {
7048
7049
  }
7049
7050
 
7050
7051
  /**
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.
7052
+ * 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
7053
  *
7053
7054
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
7054
7055
  */
7055
7056
  interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
7056
- /** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
7057
+ /** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
7057
7058
  readonly readable: ReadableStream<string>;
7058
- /** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
7059
+ /** 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
7060
  readonly writable: WritableStream<BufferSource>;
7060
7061
  }
7061
7062
 
@@ -7099,14 +7100,14 @@ interface TextEncoderCommon {
7099
7100
  }
7100
7101
 
7101
7102
  /**
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.
7103
+ * 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
7104
  *
7104
7105
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
7105
7106
  */
7106
7107
  interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
7107
- /** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
7108
+ /** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
7108
7109
  readonly readable: ReadableStream<Uint8Array>;
7109
- /** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
7110
+ /** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
7110
7111
  readonly writable: WritableStream<string>;
7111
7112
  }
7112
7113
 
@@ -7207,13 +7208,13 @@ declare var TextMetrics: {
7207
7208
  */
7208
7209
  interface TransformStream<I = any, O = any> {
7209
7210
  /**
7210
- * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
7211
+ * 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
7212
  *
7212
7213
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
7213
7214
  */
7214
7215
  readonly readable: ReadableStream<O>;
7215
7216
  /**
7216
- * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
7217
+ * 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
7218
  *
7218
7219
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
7219
7220
  */
@@ -10368,7 +10369,7 @@ interface WorkerGlobalScopeEventMap {
10368
10369
  */
10369
10370
  interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
10370
10371
  /**
10371
- * The **`location`** read-only 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
+ * 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
10373
  *
10373
10374
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
10374
10375
  */
@@ -11318,7 +11319,7 @@ declare function close(): void;
11318
11319
  */
11319
11320
  declare function dispatchEvent(event: Event): boolean;
11320
11321
  /**
11321
- * The **`location`** read-only 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
+ * 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
11323
  *
11323
11324
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
11324
11325
  */
package/ts5.9/index.d.ts CHANGED
@@ -208,6 +208,7 @@ interface FontFaceDescriptors {
208
208
  stretch?: string;
209
209
  style?: string;
210
210
  unicodeRange?: string;
211
+ variationSettings?: string;
211
212
  weight?: string;
212
213
  }
213
214
 
@@ -780,8 +781,8 @@ interface WebTransportErrorOptions {
780
781
  }
781
782
 
782
783
  interface WebTransportHash {
783
- algorithm?: string;
784
- value?: BufferSource;
784
+ algorithm: string;
785
+ value: BufferSource;
785
786
  }
786
787
 
787
788
  interface WebTransportOptions {
@@ -2052,14 +2053,14 @@ declare var CloseEvent: {
2052
2053
  };
2053
2054
 
2054
2055
  /**
2055
- * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.
2056
+ * 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
2057
  *
2057
2058
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
2058
2059
  */
2059
2060
  interface CompressionStream extends GenericTransformStream {
2060
- /** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
2061
+ /** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
2061
2062
  readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
2062
- /** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
2063
+ /** 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
2064
  readonly writable: WritableStream<BufferSource>;
2064
2065
  }
2065
2066
 
@@ -2902,14 +2903,14 @@ declare var DOMStringList: {
2902
2903
  };
2903
2904
 
2904
2905
  /**
2905
- * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.
2906
+ * 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
2907
  *
2907
2908
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
2908
2909
  */
2909
2910
  interface DecompressionStream extends GenericTransformStream {
2910
- /** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
2911
+ /** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
2911
2912
  readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
2912
- /** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
2913
+ /** 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
2914
  readonly writable: WritableStream<BufferSource>;
2914
2915
  }
2915
2916
 
@@ -7048,14 +7049,14 @@ interface TextDecoderCommon {
7048
7049
  }
7049
7050
 
7050
7051
  /**
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.
7052
+ * 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
7053
  *
7053
7054
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
7054
7055
  */
7055
7056
  interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
7056
- /** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
7057
+ /** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
7057
7058
  readonly readable: ReadableStream<string>;
7058
- /** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
7059
+ /** 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
7060
  readonly writable: WritableStream<BufferSource>;
7060
7061
  }
7061
7062
 
@@ -7099,14 +7100,14 @@ interface TextEncoderCommon {
7099
7100
  }
7100
7101
 
7101
7102
  /**
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.
7103
+ * 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
7104
  *
7104
7105
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
7105
7106
  */
7106
7107
  interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
7107
- /** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
7108
+ /** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
7108
7109
  readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
7109
- /** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
7110
+ /** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
7110
7111
  readonly writable: WritableStream<string>;
7111
7112
  }
7112
7113
 
@@ -7207,13 +7208,13 @@ declare var TextMetrics: {
7207
7208
  */
7208
7209
  interface TransformStream<I = any, O = any> {
7209
7210
  /**
7210
- * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
7211
+ * 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
7212
  *
7212
7213
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
7213
7214
  */
7214
7215
  readonly readable: ReadableStream<O>;
7215
7216
  /**
7216
- * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
7217
+ * 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
7218
  *
7218
7219
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
7219
7220
  */
@@ -10368,7 +10369,7 @@ interface WorkerGlobalScopeEventMap {
10368
10369
  */
10369
10370
  interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
10370
10371
  /**
10371
- * The **`location`** read-only 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
+ * 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
10373
  *
10373
10374
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
10374
10375
  */
@@ -11318,7 +11319,7 @@ declare function close(): void;
11318
11319
  */
11319
11320
  declare function dispatchEvent(event: Event): boolean;
11320
11321
  /**
11321
- * The **`location`** read-only 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
+ * 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
11323
  *
11323
11324
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
11324
11325
  */