@types/sharedworker 0.0.88 → 0.0.89
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 +5 -1
- 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.89 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.89.
|
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:
|
|
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;
|