@types/sharedworker 0.0.88 → 0.0.90

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 +6 -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.88 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.88.
31
+ You can read what changed in version 0.0.90 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.90.
package/index.d.ts CHANGED
@@ -1534,7 +1534,7 @@ interface FileReader extends EventTarget {
1534
1534
  onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
1535
1535
  onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
1536
1536
  onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
1537
- readonly readyState: number;
1537
+ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
1538
1538
  readonly result: string | ArrayBuffer | null;
1539
1539
  abort(): void;
1540
1540
  readAsArrayBuffer(blob: Blob): void;
@@ -2422,6 +2422,10 @@ interface OffscreenCanvas extends EventTarget {
2422
2422
  *
2423
2423
  * 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).
2424
2424
  */
2425
+ getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
2426
+ getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
2427
+ getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
2428
+ getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
2425
2429
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
2426
2430
  /** 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. */
2427
2431
  transferToImageBitmap(): ImageBitmap;
@@ -5853,7 +5857,7 @@ type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
5853
5857
  type IDBRequestReadyState = "done" | "pending";
5854
5858
  type IDBTransactionDurability = "default" | "relaxed" | "strict";
5855
5859
  type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
5856
- type ImageOrientation = "flipY" | "none";
5860
+ type ImageOrientation = "flipY" | "from-image";
5857
5861
  type ImageSmoothingQuality = "high" | "low" | "medium";
5858
5862
  type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
5859
5863
  type KeyType = "private" | "public" | "secret";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.88",
3
+ "version": "0.0.90",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],