@types/serviceworker 0.0.79 → 0.0.81
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 +3 -0
- 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.81 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.81.
|
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. */
|
|
@@ -4843,6 +4844,7 @@ interface ServiceWorkerContainer extends EventTarget {
|
|
|
4843
4844
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
4844
4845
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
|
4845
4846
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
4847
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
|
|
4846
4848
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
4847
4849
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
|
4848
4850
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
@@ -8637,6 +8639,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
|
|
|
8637
8639
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
8638
8640
|
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
8639
8641
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
8642
|
+
type RequestPriority = "auto" | "high" | "low";
|
|
8640
8643
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
8641
8644
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
|
8642
8645
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|