@types/sharedworker 0.0.113 → 0.0.115

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +13 -2
  3. 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.113 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.113.
31
+ You can read what changed in version 0.0.115 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.115.
package/index.d.ts CHANGED
@@ -456,6 +456,17 @@ interface ReadableStreamGetReaderOptions {
456
456
  mode?: ReadableStreamReaderMode;
457
457
  }
458
458
 
459
+ interface ReadableStreamIteratorOptions {
460
+ /**
461
+ * Asynchronously iterates over the chunks in the stream's internal queue.
462
+ *
463
+ * 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.
464
+ *
465
+ * 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.
466
+ */
467
+ preventCancel?: boolean;
468
+ }
469
+
459
470
  interface ReadableStreamReadDoneResult<T> {
460
471
  done: true;
461
472
  value?: T;
@@ -1469,6 +1480,8 @@ interface CanvasShadowStyles {
1469
1480
  }
1470
1481
 
1471
1482
  interface CanvasState {
1483
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
1484
+ isContextLost(): boolean;
1472
1485
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
1473
1486
  reset(): void;
1474
1487
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
@@ -3951,8 +3964,6 @@ declare var OffscreenCanvas: {
3951
3964
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
3952
3965
  interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
3953
3966
  readonly canvas: OffscreenCanvas;
3954
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
3955
- commit(): void;
3956
3967
  }
3957
3968
 
3958
3969
  declare var OffscreenCanvasRenderingContext2D: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.113",
3
+ "version": "0.0.115",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],