@types/serviceworker 0.0.84 → 0.0.85
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 +11 -0
- package/package.json +1 -1
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.85 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.85.
|
package/index.d.ts
CHANGED
|
@@ -490,6 +490,17 @@ interface ReadableStreamGetReaderOptions {
|
|
|
490
490
|
mode?: ReadableStreamReaderMode;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
+
interface ReadableStreamIteratorOptions {
|
|
494
|
+
/**
|
|
495
|
+
* Asynchronously iterates over the chunks in the stream's internal queue.
|
|
496
|
+
*
|
|
497
|
+
* 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.
|
|
498
|
+
*
|
|
499
|
+
* 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.
|
|
500
|
+
*/
|
|
501
|
+
preventCancel?: boolean;
|
|
502
|
+
}
|
|
503
|
+
|
|
493
504
|
interface ReadableStreamReadDoneResult<T> {
|
|
494
505
|
done: true;
|
|
495
506
|
value?: T;
|