@types/serviceworker 0.0.78 → 0.0.80
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 +15 -9
- 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.80 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.80.
|
package/index.d.ts
CHANGED
|
@@ -538,6 +538,7 @@ interface RequestInit {
|
|
|
538
538
|
method?: string;
|
|
539
539
|
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
|
|
540
540
|
mode?: RequestMode;
|
|
541
|
+
priority?: RequestPriority;
|
|
541
542
|
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
|
|
542
543
|
redirect?: RequestRedirect;
|
|
543
544
|
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
|
|
@@ -2565,7 +2566,11 @@ interface FileReader extends EventTarget {
|
|
|
2565
2566
|
abort(): void;
|
|
2566
2567
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
|
|
2567
2568
|
readAsArrayBuffer(blob: Blob): void;
|
|
2568
|
-
/**
|
|
2569
|
+
/**
|
|
2570
|
+
* @deprecated
|
|
2571
|
+
*
|
|
2572
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
|
|
2573
|
+
*/
|
|
2569
2574
|
readAsBinaryString(blob: Blob): void;
|
|
2570
2575
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
|
|
2571
2576
|
readAsDataURL(blob: Blob): void;
|
|
@@ -8248,11 +8253,11 @@ declare namespace WebAssembly {
|
|
|
8248
8253
|
var Module: {
|
|
8249
8254
|
prototype: Module;
|
|
8250
8255
|
new(bytes: BufferSource): Module;
|
|
8251
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/
|
|
8256
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
|
|
8252
8257
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
8253
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/
|
|
8258
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
|
|
8254
8259
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
8255
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/
|
|
8260
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
|
|
8256
8261
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
8257
8262
|
};
|
|
8258
8263
|
|
|
@@ -8333,16 +8338,16 @@ declare namespace WebAssembly {
|
|
|
8333
8338
|
type Imports = Record<string, ModuleImports>;
|
|
8334
8339
|
type ModuleImports = Record<string, ImportValue>;
|
|
8335
8340
|
type ValueType = keyof ValueTypeMap;
|
|
8336
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8341
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
|
|
8337
8342
|
function compile(bytes: BufferSource): Promise<Module>;
|
|
8338
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8343
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */
|
|
8339
8344
|
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
|
|
8340
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8345
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
|
|
8341
8346
|
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
8342
8347
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
8343
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8348
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */
|
|
8344
8349
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
8345
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/
|
|
8350
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
|
|
8346
8351
|
function validate(bytes: BufferSource): boolean;
|
|
8347
8352
|
}
|
|
8348
8353
|
|
|
@@ -8633,6 +8638,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
|
|
|
8633
8638
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
8634
8639
|
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
8635
8640
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
8641
|
+
type RequestPriority = "auto" | "high" | "low";
|
|
8636
8642
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
8637
8643
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
|
8638
8644
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|