@types/serviceworker 0.0.84 → 0.0.86
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 +13 -2
- 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.86 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.86.
|
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;
|
|
@@ -1497,6 +1508,8 @@ interface CanvasShadowStyles {
|
|
|
1497
1508
|
}
|
|
1498
1509
|
|
|
1499
1510
|
interface CanvasState {
|
|
1511
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
|
|
1512
|
+
isContextLost(): boolean;
|
|
1500
1513
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
|
|
1501
1514
|
reset(): void;
|
|
1502
1515
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
|
|
@@ -4079,8 +4092,6 @@ declare var OffscreenCanvas: {
|
|
|
4079
4092
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
|
|
4080
4093
|
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
|
|
4081
4094
|
readonly canvas: OffscreenCanvas;
|
|
4082
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
|
|
4083
|
-
commit(): void;
|
|
4084
4095
|
}
|
|
4085
4096
|
|
|
4086
4097
|
declare var OffscreenCanvasRenderingContext2D: {
|