@types/serviceworker 0.0.200 → 0.0.202

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 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.200 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.200.
33
+ You can read what changed in version 0.0.202 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.202.
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 | URL, init?: RequestInit): Request;
8471
+ new(input: RequestInfo | WorkerLocation | 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 | URL, base?: string | URL): URL;
9523
+ new(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, base?: string | URL): boolean;
9529
+ canParse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, base?: string | URL): URL | null;
9535
+ parse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, init?: RequestInit): Promise<Response>;
12583
+ fetch(input: RequestInfo | WorkerLocation | 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 | URL, init?: RequestInit): Promise<Response>;
13535
+ declare function fetch(input: RequestInfo | WorkerLocation | 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) */
@@ -13682,7 +13682,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
13682
13682
  type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
13683
13683
  type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
13684
13684
  type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
13685
- type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
13685
+ type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm10-10-10-2" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
13686
13686
  type GPUVertexStepMode = "instance" | "vertex";
13687
13687
  type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
13688
13688
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.200",
3
+ "version": "0.0.202",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
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 | URL, init?: RequestInit): Request;
8468
+ new(input: RequestInfo | WorkerLocation | 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 | URL, base?: string | URL): URL;
9520
+ new(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, base?: string | URL): boolean;
9526
+ canParse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, base?: string | URL): URL | null;
9532
+ parse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, init?: RequestInit): Promise<Response>;
12580
+ fetch(input: RequestInfo | WorkerLocation | 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 | URL, init?: RequestInit): Promise<Response>;
13532
+ declare function fetch(input: RequestInfo | WorkerLocation | 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) */
@@ -13679,7 +13679,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
13679
13679
  type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
13680
13680
  type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
13681
13681
  type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
13682
- type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
13682
+ type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm10-10-10-2" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
13683
13683
  type GPUVertexStepMode = "instance" | "vertex";
13684
13684
  type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
13685
13685
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
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 | URL, init?: RequestInit): Request;
8468
+ new(input: RequestInfo | WorkerLocation | 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 | URL, base?: string | URL): URL;
9520
+ new(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, base?: string | URL): boolean;
9526
+ canParse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, base?: string | URL): URL | null;
9532
+ parse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, init?: RequestInit): Promise<Response>;
12580
+ fetch(input: RequestInfo | WorkerLocation | 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 | URL, init?: RequestInit): Promise<Response>;
13532
+ declare function fetch(input: RequestInfo | WorkerLocation | 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) */
@@ -13679,7 +13679,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
13679
13679
  type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
13680
13680
  type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
13681
13681
  type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
13682
- type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
13682
+ type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm10-10-10-2" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
13683
13683
  type GPUVertexStepMode = "instance" | "vertex";
13684
13684
  type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
13685
13685
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
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 | URL, init?: RequestInit): Request;
8468
+ new(input: RequestInfo | WorkerLocation | 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 | URL, base?: string | URL): URL;
9520
+ new(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, base?: string | URL): boolean;
9526
+ canParse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, base?: string | URL): URL | null;
9532
+ parse(url: string | WorkerLocation | URL, base?: string | URL | WorkerLocation): 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 | URL, init?: RequestInit): Promise<Response>;
12580
+ fetch(input: RequestInfo | WorkerLocation | 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 | URL, init?: RequestInit): Promise<Response>;
13532
+ declare function fetch(input: RequestInfo | WorkerLocation | 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) */
@@ -13679,7 +13679,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
13679
13679
  type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
13680
13680
  type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
13681
13681
  type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
13682
- type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
13682
+ type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm10-10-10-2" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
13683
13683
  type GPUVertexStepMode = "instance" | "vertex";
13684
13684
  type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
13685
13685
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";