@types/serviceworker 0.0.59 → 0.0.60

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 +5 -1
  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.59 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.59.
31
+ You can read what changed in version 0.0.60 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.60.
package/index.d.ts CHANGED
@@ -1629,7 +1629,7 @@ interface FileReader extends EventTarget {
1629
1629
  onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
1630
1630
  onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
1631
1631
  onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
1632
- readonly readyState: number;
1632
+ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
1633
1633
  readonly result: string | ArrayBuffer | null;
1634
1634
  abort(): void;
1635
1635
  readAsArrayBuffer(blob: Blob): void;
@@ -2514,6 +2514,10 @@ interface OffscreenCanvas extends EventTarget {
2514
2514
  *
2515
2515
  * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
2516
2516
  */
2517
+ getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
2518
+ getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
2519
+ getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
2520
+ getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
2517
2521
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
2518
2522
  /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
2519
2523
  transferToImageBitmap(): ImageBitmap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],