@types/serviceworker 0.0.59 → 0.0.61
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 +6 -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.61 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.61.
|
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:
|
|
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;
|
|
@@ -5845,7 +5849,7 @@ type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
|
5845
5849
|
type IDBRequestReadyState = "done" | "pending";
|
|
5846
5850
|
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
|
5847
5851
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
5848
|
-
type ImageOrientation = "flipY" | "
|
|
5852
|
+
type ImageOrientation = "flipY" | "from-image";
|
|
5849
5853
|
type ImageSmoothingQuality = "high" | "low" | "medium";
|
|
5850
5854
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
5851
5855
|
type KeyType = "private" | "public" | "secret";
|