@types/serviceworker 0.0.198 → 0.0.200

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.198 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.198.
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.
package/index.d.ts CHANGED
@@ -453,6 +453,7 @@ interface GPUPipelineErrorInit {
453
453
 
454
454
  interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
455
455
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
456
+ immediateSize?: GPUSize32;
456
457
  }
457
458
 
458
459
  interface GPUPrimitiveState {
@@ -1453,21 +1454,53 @@ declare var Blob: {
1453
1454
  };
1454
1455
 
1455
1456
  interface Body {
1456
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
1457
+ /**
1458
+ * The **`body`** read-only property of the Request interface contains a ReadableStream with the body contents that have been added to the request. Note that a request using the GET or HEAD method cannot have a body and null is returned in these cases.
1459
+ *
1460
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
1461
+ */
1457
1462
  readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
1458
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
1463
+ /**
1464
+ * The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
1465
+ *
1466
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
1467
+ */
1459
1468
  readonly bodyUsed: boolean;
1460
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
1469
+ /**
1470
+ * The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
1471
+ *
1472
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
1473
+ */
1461
1474
  arrayBuffer(): Promise<ArrayBuffer>;
1462
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
1475
+ /**
1476
+ * The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
1477
+ *
1478
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
1479
+ */
1463
1480
  blob(): Promise<Blob>;
1464
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
1481
+ /**
1482
+ * The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
1483
+ *
1484
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
1485
+ */
1465
1486
  bytes(): Promise<Uint8Array<ArrayBuffer>>;
1466
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
1487
+ /**
1488
+ * The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
1489
+ *
1490
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
1491
+ */
1467
1492
  formData(): Promise<FormData>;
1468
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
1493
+ /**
1494
+ * The **`json()`** method of the Request interface reads the request body and returns it as a promise that resolves with the result of parsing the body text as JSON.
1495
+ *
1496
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
1497
+ */
1469
1498
  json(): Promise<any>;
1470
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
1499
+ /**
1500
+ * The **`text()`** method of the Request interface reads the request body and returns it as a promise that resolves with a String. The response is always decoded using UTF-8.
1501
+ *
1502
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
1503
+ */
1471
1504
  text(): Promise<string>;
1472
1505
  }
1473
1506
 
@@ -7280,6 +7313,7 @@ interface OffscreenCanvas extends EventTarget {
7280
7313
  getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
7281
7314
  getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
7282
7315
  getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
7316
+ getContext(contextId: "webgpu"): GPUCanvasContext | null;
7283
7317
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
7284
7318
  /**
7285
7319
  * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
@@ -12838,6 +12872,47 @@ declare var WritableStreamDefaultWriter: {
12838
12872
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
12839
12873
  };
12840
12874
 
12875
+ declare namespace GPUBufferUsage {
12876
+ const MAP_READ: 0x0001;
12877
+ const MAP_WRITE: 0x0002;
12878
+ const COPY_SRC: 0x0004;
12879
+ const COPY_DST: 0x0008;
12880
+ const INDEX: 0x0010;
12881
+ const VERTEX: 0x0020;
12882
+ const UNIFORM: 0x0040;
12883
+ const STORAGE: 0x0080;
12884
+ const INDIRECT: 0x0100;
12885
+ const QUERY_RESOLVE: 0x0200;
12886
+ }
12887
+
12888
+ declare namespace GPUColorWrite {
12889
+ const RED: 0x1;
12890
+ const GREEN: 0x2;
12891
+ const BLUE: 0x4;
12892
+ const ALPHA: 0x8;
12893
+ const ALL: 0xF;
12894
+ }
12895
+
12896
+ declare namespace GPUMapMode {
12897
+ const READ: 0x0001;
12898
+ const WRITE: 0x0002;
12899
+ }
12900
+
12901
+ declare namespace GPUShaderStage {
12902
+ const VERTEX: 0x1;
12903
+ const FRAGMENT: 0x2;
12904
+ const COMPUTE: 0x4;
12905
+ }
12906
+
12907
+ declare namespace GPUTextureUsage {
12908
+ const COPY_SRC: 0x01;
12909
+ const COPY_DST: 0x02;
12910
+ const TEXTURE_BINDING: 0x04;
12911
+ const STORAGE_BINDING: 0x08;
12912
+ const RENDER_ATTACHMENT: 0x10;
12913
+ const TRANSIENT_ATTACHMENT: 0x20;
12914
+ }
12915
+
12841
12916
  declare namespace WebAssembly {
12842
12917
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12843
12918
  interface CompileError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.198",
3
+ "version": "0.0.200",
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
@@ -450,6 +450,7 @@ interface GPUPipelineErrorInit {
450
450
 
451
451
  interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
452
452
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
453
+ immediateSize?: GPUSize32;
453
454
  }
454
455
 
455
456
  interface GPUPrimitiveState {
@@ -1450,21 +1451,53 @@ declare var Blob: {
1450
1451
  };
1451
1452
 
1452
1453
  interface Body {
1453
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
1454
+ /**
1455
+ * The **`body`** read-only property of the Request interface contains a ReadableStream with the body contents that have been added to the request. Note that a request using the GET or HEAD method cannot have a body and null is returned in these cases.
1456
+ *
1457
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
1458
+ */
1454
1459
  readonly body: ReadableStream<Uint8Array> | null;
1455
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
1460
+ /**
1461
+ * The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
1462
+ *
1463
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
1464
+ */
1456
1465
  readonly bodyUsed: boolean;
1457
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
1466
+ /**
1467
+ * The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
1468
+ *
1469
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
1470
+ */
1458
1471
  arrayBuffer(): Promise<ArrayBuffer>;
1459
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
1472
+ /**
1473
+ * The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
1474
+ *
1475
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
1476
+ */
1460
1477
  blob(): Promise<Blob>;
1461
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
1478
+ /**
1479
+ * The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
1480
+ *
1481
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
1482
+ */
1462
1483
  bytes(): Promise<Uint8Array>;
1463
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
1484
+ /**
1485
+ * The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
1486
+ *
1487
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
1488
+ */
1464
1489
  formData(): Promise<FormData>;
1465
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
1490
+ /**
1491
+ * The **`json()`** method of the Request interface reads the request body and returns it as a promise that resolves with the result of parsing the body text as JSON.
1492
+ *
1493
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
1494
+ */
1466
1495
  json(): Promise<any>;
1467
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
1496
+ /**
1497
+ * The **`text()`** method of the Request interface reads the request body and returns it as a promise that resolves with a String. The response is always decoded using UTF-8.
1498
+ *
1499
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
1500
+ */
1468
1501
  text(): Promise<string>;
1469
1502
  }
1470
1503
 
@@ -7277,6 +7310,7 @@ interface OffscreenCanvas extends EventTarget {
7277
7310
  getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
7278
7311
  getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
7279
7312
  getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
7313
+ getContext(contextId: "webgpu"): GPUCanvasContext | null;
7280
7314
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
7281
7315
  /**
7282
7316
  * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
@@ -12835,6 +12869,47 @@ declare var WritableStreamDefaultWriter: {
12835
12869
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
12836
12870
  };
12837
12871
 
12872
+ declare namespace GPUBufferUsage {
12873
+ const MAP_READ: 0x0001;
12874
+ const MAP_WRITE: 0x0002;
12875
+ const COPY_SRC: 0x0004;
12876
+ const COPY_DST: 0x0008;
12877
+ const INDEX: 0x0010;
12878
+ const VERTEX: 0x0020;
12879
+ const UNIFORM: 0x0040;
12880
+ const STORAGE: 0x0080;
12881
+ const INDIRECT: 0x0100;
12882
+ const QUERY_RESOLVE: 0x0200;
12883
+ }
12884
+
12885
+ declare namespace GPUColorWrite {
12886
+ const RED: 0x1;
12887
+ const GREEN: 0x2;
12888
+ const BLUE: 0x4;
12889
+ const ALPHA: 0x8;
12890
+ const ALL: 0xF;
12891
+ }
12892
+
12893
+ declare namespace GPUMapMode {
12894
+ const READ: 0x0001;
12895
+ const WRITE: 0x0002;
12896
+ }
12897
+
12898
+ declare namespace GPUShaderStage {
12899
+ const VERTEX: 0x1;
12900
+ const FRAGMENT: 0x2;
12901
+ const COMPUTE: 0x4;
12902
+ }
12903
+
12904
+ declare namespace GPUTextureUsage {
12905
+ const COPY_SRC: 0x01;
12906
+ const COPY_DST: 0x02;
12907
+ const TEXTURE_BINDING: 0x04;
12908
+ const STORAGE_BINDING: 0x08;
12909
+ const RENDER_ATTACHMENT: 0x10;
12910
+ const TRANSIENT_ATTACHMENT: 0x20;
12911
+ }
12912
+
12838
12913
  declare namespace WebAssembly {
12839
12914
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12840
12915
  interface CompileError extends Error {
package/ts5.6/index.d.ts CHANGED
@@ -450,6 +450,7 @@ interface GPUPipelineErrorInit {
450
450
 
451
451
  interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
452
452
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
453
+ immediateSize?: GPUSize32;
453
454
  }
454
455
 
455
456
  interface GPUPrimitiveState {
@@ -1450,21 +1451,53 @@ declare var Blob: {
1450
1451
  };
1451
1452
 
1452
1453
  interface Body {
1453
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
1454
+ /**
1455
+ * The **`body`** read-only property of the Request interface contains a ReadableStream with the body contents that have been added to the request. Note that a request using the GET or HEAD method cannot have a body and null is returned in these cases.
1456
+ *
1457
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
1458
+ */
1454
1459
  readonly body: ReadableStream<Uint8Array> | null;
1455
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
1460
+ /**
1461
+ * The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
1462
+ *
1463
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
1464
+ */
1456
1465
  readonly bodyUsed: boolean;
1457
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
1466
+ /**
1467
+ * The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
1468
+ *
1469
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
1470
+ */
1458
1471
  arrayBuffer(): Promise<ArrayBuffer>;
1459
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
1472
+ /**
1473
+ * The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
1474
+ *
1475
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
1476
+ */
1460
1477
  blob(): Promise<Blob>;
1461
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
1478
+ /**
1479
+ * The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
1480
+ *
1481
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
1482
+ */
1462
1483
  bytes(): Promise<Uint8Array>;
1463
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
1484
+ /**
1485
+ * The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
1486
+ *
1487
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
1488
+ */
1464
1489
  formData(): Promise<FormData>;
1465
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
1490
+ /**
1491
+ * The **`json()`** method of the Request interface reads the request body and returns it as a promise that resolves with the result of parsing the body text as JSON.
1492
+ *
1493
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
1494
+ */
1466
1495
  json(): Promise<any>;
1467
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
1496
+ /**
1497
+ * The **`text()`** method of the Request interface reads the request body and returns it as a promise that resolves with a String. The response is always decoded using UTF-8.
1498
+ *
1499
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
1500
+ */
1468
1501
  text(): Promise<string>;
1469
1502
  }
1470
1503
 
@@ -7277,6 +7310,7 @@ interface OffscreenCanvas extends EventTarget {
7277
7310
  getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
7278
7311
  getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
7279
7312
  getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
7313
+ getContext(contextId: "webgpu"): GPUCanvasContext | null;
7280
7314
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
7281
7315
  /**
7282
7316
  * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
@@ -12835,6 +12869,47 @@ declare var WritableStreamDefaultWriter: {
12835
12869
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
12836
12870
  };
12837
12871
 
12872
+ declare namespace GPUBufferUsage {
12873
+ const MAP_READ: 0x0001;
12874
+ const MAP_WRITE: 0x0002;
12875
+ const COPY_SRC: 0x0004;
12876
+ const COPY_DST: 0x0008;
12877
+ const INDEX: 0x0010;
12878
+ const VERTEX: 0x0020;
12879
+ const UNIFORM: 0x0040;
12880
+ const STORAGE: 0x0080;
12881
+ const INDIRECT: 0x0100;
12882
+ const QUERY_RESOLVE: 0x0200;
12883
+ }
12884
+
12885
+ declare namespace GPUColorWrite {
12886
+ const RED: 0x1;
12887
+ const GREEN: 0x2;
12888
+ const BLUE: 0x4;
12889
+ const ALPHA: 0x8;
12890
+ const ALL: 0xF;
12891
+ }
12892
+
12893
+ declare namespace GPUMapMode {
12894
+ const READ: 0x0001;
12895
+ const WRITE: 0x0002;
12896
+ }
12897
+
12898
+ declare namespace GPUShaderStage {
12899
+ const VERTEX: 0x1;
12900
+ const FRAGMENT: 0x2;
12901
+ const COMPUTE: 0x4;
12902
+ }
12903
+
12904
+ declare namespace GPUTextureUsage {
12905
+ const COPY_SRC: 0x01;
12906
+ const COPY_DST: 0x02;
12907
+ const TEXTURE_BINDING: 0x04;
12908
+ const STORAGE_BINDING: 0x08;
12909
+ const RENDER_ATTACHMENT: 0x10;
12910
+ const TRANSIENT_ATTACHMENT: 0x20;
12911
+ }
12912
+
12838
12913
  declare namespace WebAssembly {
12839
12914
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12840
12915
  interface CompileError extends Error {
package/ts5.9/index.d.ts CHANGED
@@ -450,6 +450,7 @@ interface GPUPipelineErrorInit {
450
450
 
451
451
  interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
452
452
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
453
+ immediateSize?: GPUSize32;
453
454
  }
454
455
 
455
456
  interface GPUPrimitiveState {
@@ -1450,21 +1451,53 @@ declare var Blob: {
1450
1451
  };
1451
1452
 
1452
1453
  interface Body {
1453
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
1454
+ /**
1455
+ * The **`body`** read-only property of the Request interface contains a ReadableStream with the body contents that have been added to the request. Note that a request using the GET or HEAD method cannot have a body and null is returned in these cases.
1456
+ *
1457
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
1458
+ */
1454
1459
  readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
1455
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
1460
+ /**
1461
+ * The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
1462
+ *
1463
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
1464
+ */
1456
1465
  readonly bodyUsed: boolean;
1457
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
1466
+ /**
1467
+ * The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
1468
+ *
1469
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
1470
+ */
1458
1471
  arrayBuffer(): Promise<ArrayBuffer>;
1459
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
1472
+ /**
1473
+ * The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
1474
+ *
1475
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
1476
+ */
1460
1477
  blob(): Promise<Blob>;
1461
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
1478
+ /**
1479
+ * The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
1480
+ *
1481
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
1482
+ */
1462
1483
  bytes(): Promise<Uint8Array<ArrayBuffer>>;
1463
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
1484
+ /**
1485
+ * The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
1486
+ *
1487
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
1488
+ */
1464
1489
  formData(): Promise<FormData>;
1465
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
1490
+ /**
1491
+ * The **`json()`** method of the Request interface reads the request body and returns it as a promise that resolves with the result of parsing the body text as JSON.
1492
+ *
1493
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
1494
+ */
1466
1495
  json(): Promise<any>;
1467
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
1496
+ /**
1497
+ * The **`text()`** method of the Request interface reads the request body and returns it as a promise that resolves with a String. The response is always decoded using UTF-8.
1498
+ *
1499
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
1500
+ */
1468
1501
  text(): Promise<string>;
1469
1502
  }
1470
1503
 
@@ -7277,6 +7310,7 @@ interface OffscreenCanvas extends EventTarget {
7277
7310
  getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
7278
7311
  getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
7279
7312
  getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
7313
+ getContext(contextId: "webgpu"): GPUCanvasContext | null;
7280
7314
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
7281
7315
  /**
7282
7316
  * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
@@ -12835,6 +12869,47 @@ declare var WritableStreamDefaultWriter: {
12835
12869
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
12836
12870
  };
12837
12871
 
12872
+ declare namespace GPUBufferUsage {
12873
+ const MAP_READ: 0x0001;
12874
+ const MAP_WRITE: 0x0002;
12875
+ const COPY_SRC: 0x0004;
12876
+ const COPY_DST: 0x0008;
12877
+ const INDEX: 0x0010;
12878
+ const VERTEX: 0x0020;
12879
+ const UNIFORM: 0x0040;
12880
+ const STORAGE: 0x0080;
12881
+ const INDIRECT: 0x0100;
12882
+ const QUERY_RESOLVE: 0x0200;
12883
+ }
12884
+
12885
+ declare namespace GPUColorWrite {
12886
+ const RED: 0x1;
12887
+ const GREEN: 0x2;
12888
+ const BLUE: 0x4;
12889
+ const ALPHA: 0x8;
12890
+ const ALL: 0xF;
12891
+ }
12892
+
12893
+ declare namespace GPUMapMode {
12894
+ const READ: 0x0001;
12895
+ const WRITE: 0x0002;
12896
+ }
12897
+
12898
+ declare namespace GPUShaderStage {
12899
+ const VERTEX: 0x1;
12900
+ const FRAGMENT: 0x2;
12901
+ const COMPUTE: 0x4;
12902
+ }
12903
+
12904
+ declare namespace GPUTextureUsage {
12905
+ const COPY_SRC: 0x01;
12906
+ const COPY_DST: 0x02;
12907
+ const TEXTURE_BINDING: 0x04;
12908
+ const STORAGE_BINDING: 0x08;
12909
+ const RENDER_ATTACHMENT: 0x10;
12910
+ const TRANSIENT_ATTACHMENT: 0x20;
12911
+ }
12912
+
12838
12913
  declare namespace WebAssembly {
12839
12914
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
12840
12915
  interface CompileError extends Error {