@types/audioworklet 0.0.53 → 0.0.55

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.53 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.53.
31
+ You can read what changed in version 0.0.55 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.55.
package/index.d.ts CHANGED
@@ -68,6 +68,17 @@ interface ReadableStreamGetReaderOptions {
68
68
  mode?: ReadableStreamReaderMode;
69
69
  }
70
70
 
71
+ interface ReadableStreamIteratorOptions {
72
+ /**
73
+ * Asynchronously iterates over the chunks in the stream's internal queue.
74
+ *
75
+ * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
76
+ *
77
+ * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
78
+ */
79
+ preventCancel?: boolean;
80
+ }
81
+
71
82
  interface ReadableStreamReadDoneResult<T> {
72
83
  done: true;
73
84
  value?: T;
@@ -227,6 +238,8 @@ declare var AbortSignal: {
227
238
  new(): AbortSignal;
228
239
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
229
240
  // abort(reason?: any): AbortSignal; - To be re-added in the future
241
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
242
+ any(signals: AbortSignal[]): AbortSignal;
230
243
  };
231
244
 
232
245
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope) */
package/iterable.d.ts CHANGED
@@ -2,6 +2,11 @@
2
2
  /// AudioWorklet Iterable APIs
3
3
  /////////////////////////////
4
4
 
5
+ interface AbortSignal {
6
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
7
+ any(signals: Iterable<AbortSignal>): AbortSignal;
8
+ }
9
+
5
10
  interface MessageEvent<T = any> {
6
11
  /**
7
12
  * @deprecated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/audioworklet",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "description": "Types for the global scope of Audio Worklets",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],