@types/serviceworker 0.0.202 → 0.0.203
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 -6
- package/package.json +1 -1
- package/ts5.5/index.d.ts +6 -6
- package/ts5.6/index.d.ts +6 -6
- package/ts5.9/index.d.ts +6 -6
package/README.md
CHANGED
|
@@ -30,4 +30,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
30
30
|
|
|
31
31
|
## Deploy Metadata
|
|
32
32
|
|
|
33
|
-
You can read what changed in version 0.0.
|
|
33
|
+
You can read what changed in version 0.0.203 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.203.
|
package/index.d.ts
CHANGED
|
@@ -8468,7 +8468,7 @@ interface Request extends Body {
|
|
|
8468
8468
|
|
|
8469
8469
|
declare var Request: {
|
|
8470
8470
|
prototype: Request;
|
|
8471
|
-
new(input: RequestInfo |
|
|
8471
|
+
new(input: RequestInfo | URL, init?: RequestInit): Request;
|
|
8472
8472
|
};
|
|
8473
8473
|
|
|
8474
8474
|
/**
|
|
@@ -9520,19 +9520,19 @@ interface URL {
|
|
|
9520
9520
|
|
|
9521
9521
|
declare var URL: {
|
|
9522
9522
|
prototype: URL;
|
|
9523
|
-
new(url: string |
|
|
9523
|
+
new(url: string | URL, base?: string | URL): URL;
|
|
9524
9524
|
/**
|
|
9525
9525
|
* The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
|
|
9526
9526
|
*
|
|
9527
9527
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
|
|
9528
9528
|
*/
|
|
9529
|
-
canParse(url: string |
|
|
9529
|
+
canParse(url: string | URL, base?: string | URL): boolean;
|
|
9530
9530
|
/**
|
|
9531
9531
|
* The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
|
|
9532
9532
|
*
|
|
9533
9533
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
|
|
9534
9534
|
*/
|
|
9535
|
-
parse(url: string |
|
|
9535
|
+
parse(url: string | URL, base?: string | URL): URL | null;
|
|
9536
9536
|
};
|
|
9537
9537
|
|
|
9538
9538
|
/**
|
|
@@ -12580,7 +12580,7 @@ interface WindowOrWorkerGlobalScope {
|
|
|
12580
12580
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
12581
12581
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
12582
12582
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
|
12583
|
-
fetch(input: RequestInfo |
|
|
12583
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
12584
12584
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
|
12585
12585
|
queueMicrotask(callback: VoidFunction): void;
|
|
12586
12586
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|
|
@@ -13532,7 +13532,7 @@ declare function clearTimeout(id: number | undefined): void;
|
|
|
13532
13532
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
13533
13533
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
13534
13534
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
|
13535
|
-
declare function fetch(input: RequestInfo |
|
|
13535
|
+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
13536
13536
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
|
13537
13537
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
13538
13538
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -8465,7 +8465,7 @@ interface Request extends Body {
|
|
|
8465
8465
|
|
|
8466
8466
|
declare var Request: {
|
|
8467
8467
|
prototype: Request;
|
|
8468
|
-
new(input: RequestInfo |
|
|
8468
|
+
new(input: RequestInfo | URL, init?: RequestInit): Request;
|
|
8469
8469
|
};
|
|
8470
8470
|
|
|
8471
8471
|
/**
|
|
@@ -9517,19 +9517,19 @@ interface URL {
|
|
|
9517
9517
|
|
|
9518
9518
|
declare var URL: {
|
|
9519
9519
|
prototype: URL;
|
|
9520
|
-
new(url: string |
|
|
9520
|
+
new(url: string | URL, base?: string | URL): URL;
|
|
9521
9521
|
/**
|
|
9522
9522
|
* The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
|
|
9523
9523
|
*
|
|
9524
9524
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
|
|
9525
9525
|
*/
|
|
9526
|
-
canParse(url: string |
|
|
9526
|
+
canParse(url: string | URL, base?: string | URL): boolean;
|
|
9527
9527
|
/**
|
|
9528
9528
|
* The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
|
|
9529
9529
|
*
|
|
9530
9530
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
|
|
9531
9531
|
*/
|
|
9532
|
-
parse(url: string |
|
|
9532
|
+
parse(url: string | URL, base?: string | URL): URL | null;
|
|
9533
9533
|
};
|
|
9534
9534
|
|
|
9535
9535
|
/**
|
|
@@ -12577,7 +12577,7 @@ interface WindowOrWorkerGlobalScope {
|
|
|
12577
12577
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
12578
12578
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
12579
12579
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
|
12580
|
-
fetch(input: RequestInfo |
|
|
12580
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
12581
12581
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
|
12582
12582
|
queueMicrotask(callback: VoidFunction): void;
|
|
12583
12583
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|
|
@@ -13529,7 +13529,7 @@ declare function clearTimeout(id: number | undefined): void;
|
|
|
13529
13529
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
13530
13530
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
13531
13531
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
|
13532
|
-
declare function fetch(input: RequestInfo |
|
|
13532
|
+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
13533
13533
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
|
13534
13534
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
13535
13535
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -8465,7 +8465,7 @@ interface Request extends Body {
|
|
|
8465
8465
|
|
|
8466
8466
|
declare var Request: {
|
|
8467
8467
|
prototype: Request;
|
|
8468
|
-
new(input: RequestInfo |
|
|
8468
|
+
new(input: RequestInfo | URL, init?: RequestInit): Request;
|
|
8469
8469
|
};
|
|
8470
8470
|
|
|
8471
8471
|
/**
|
|
@@ -9517,19 +9517,19 @@ interface URL {
|
|
|
9517
9517
|
|
|
9518
9518
|
declare var URL: {
|
|
9519
9519
|
prototype: URL;
|
|
9520
|
-
new(url: string |
|
|
9520
|
+
new(url: string | URL, base?: string | URL): URL;
|
|
9521
9521
|
/**
|
|
9522
9522
|
* The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
|
|
9523
9523
|
*
|
|
9524
9524
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
|
|
9525
9525
|
*/
|
|
9526
|
-
canParse(url: string |
|
|
9526
|
+
canParse(url: string | URL, base?: string | URL): boolean;
|
|
9527
9527
|
/**
|
|
9528
9528
|
* The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
|
|
9529
9529
|
*
|
|
9530
9530
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
|
|
9531
9531
|
*/
|
|
9532
|
-
parse(url: string |
|
|
9532
|
+
parse(url: string | URL, base?: string | URL): URL | null;
|
|
9533
9533
|
};
|
|
9534
9534
|
|
|
9535
9535
|
/**
|
|
@@ -12577,7 +12577,7 @@ interface WindowOrWorkerGlobalScope {
|
|
|
12577
12577
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
12578
12578
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
12579
12579
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
|
12580
|
-
fetch(input: RequestInfo |
|
|
12580
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
12581
12581
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
|
12582
12582
|
queueMicrotask(callback: VoidFunction): void;
|
|
12583
12583
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|
|
@@ -13529,7 +13529,7 @@ declare function clearTimeout(id: number | undefined): void;
|
|
|
13529
13529
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
13530
13530
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
13531
13531
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
|
13532
|
-
declare function fetch(input: RequestInfo |
|
|
13532
|
+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
13533
13533
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
|
13534
13534
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
13535
13535
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -8465,7 +8465,7 @@ interface Request extends Body {
|
|
|
8465
8465
|
|
|
8466
8466
|
declare var Request: {
|
|
8467
8467
|
prototype: Request;
|
|
8468
|
-
new(input: RequestInfo |
|
|
8468
|
+
new(input: RequestInfo | URL, init?: RequestInit): Request;
|
|
8469
8469
|
};
|
|
8470
8470
|
|
|
8471
8471
|
/**
|
|
@@ -9517,19 +9517,19 @@ interface URL {
|
|
|
9517
9517
|
|
|
9518
9518
|
declare var URL: {
|
|
9519
9519
|
prototype: URL;
|
|
9520
|
-
new(url: string |
|
|
9520
|
+
new(url: string | URL, base?: string | URL): URL;
|
|
9521
9521
|
/**
|
|
9522
9522
|
* The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
|
|
9523
9523
|
*
|
|
9524
9524
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
|
|
9525
9525
|
*/
|
|
9526
|
-
canParse(url: string |
|
|
9526
|
+
canParse(url: string | URL, base?: string | URL): boolean;
|
|
9527
9527
|
/**
|
|
9528
9528
|
* The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
|
|
9529
9529
|
*
|
|
9530
9530
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
|
|
9531
9531
|
*/
|
|
9532
|
-
parse(url: string |
|
|
9532
|
+
parse(url: string | URL, base?: string | URL): URL | null;
|
|
9533
9533
|
};
|
|
9534
9534
|
|
|
9535
9535
|
/**
|
|
@@ -12577,7 +12577,7 @@ interface WindowOrWorkerGlobalScope {
|
|
|
12577
12577
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
12578
12578
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
12579
12579
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
|
12580
|
-
fetch(input: RequestInfo |
|
|
12580
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
12581
12581
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
|
12582
12582
|
queueMicrotask(callback: VoidFunction): void;
|
|
12583
12583
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|
|
@@ -13529,7 +13529,7 @@ declare function clearTimeout(id: number | undefined): void;
|
|
|
13529
13529
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
13530
13530
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
13531
13531
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
|
13532
|
-
declare function fetch(input: RequestInfo |
|
|
13532
|
+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
13533
13533
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
|
13534
13534
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
13535
13535
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|