@types/webworker 0.0.77 → 0.0.79

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
@@ -47,4 +47,4 @@ This project does not respect semantic versioning as almost every change could p
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.77 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.77.
50
+ You can read what changed in version 0.0.79 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.79.
package/index.d.ts CHANGED
@@ -544,6 +544,7 @@ interface GPUPipelineErrorInit {
544
544
 
545
545
  interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
546
546
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
547
+ immediateSize?: GPUSize32;
547
548
  }
548
549
 
549
550
  interface GPUPrimitiveState {
@@ -1960,21 +1961,53 @@ declare var Blob: {
1960
1961
  };
1961
1962
 
1962
1963
  interface Body {
1963
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
1964
+ /**
1965
+ * 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.
1966
+ *
1967
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
1968
+ */
1964
1969
  readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
1965
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
1970
+ /**
1971
+ * The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
1972
+ *
1973
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
1974
+ */
1966
1975
  readonly bodyUsed: boolean;
1967
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
1976
+ /**
1977
+ * The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
1978
+ *
1979
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
1980
+ */
1968
1981
  arrayBuffer(): Promise<ArrayBuffer>;
1969
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
1982
+ /**
1983
+ * The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
1984
+ *
1985
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
1986
+ */
1970
1987
  blob(): Promise<Blob>;
1971
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
1988
+ /**
1989
+ * The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
1990
+ *
1991
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
1992
+ */
1972
1993
  bytes(): Promise<Uint8Array<ArrayBuffer>>;
1973
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
1994
+ /**
1995
+ * The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
1996
+ *
1997
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
1998
+ */
1974
1999
  formData(): Promise<FormData>;
1975
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
2000
+ /**
2001
+ * 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.
2002
+ *
2003
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
2004
+ */
1976
2005
  json(): Promise<any>;
1977
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
2006
+ /**
2007
+ * 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.
2008
+ *
2009
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
2010
+ */
1978
2011
  text(): Promise<string>;
1979
2012
  }
1980
2013
 
@@ -8182,6 +8215,7 @@ interface OffscreenCanvas extends EventTarget {
8182
8215
  getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
8183
8216
  getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
8184
8217
  getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
8218
+ getContext(contextId: "webgpu"): GPUCanvasContext | null;
8185
8219
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
8186
8220
  /**
8187
8221
  * 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.
@@ -14648,6 +14682,47 @@ declare var XMLHttpRequestUpload: {
14648
14682
  new(): XMLHttpRequestUpload;
14649
14683
  };
14650
14684
 
14685
+ declare namespace GPUBufferUsage {
14686
+ const MAP_READ: 0x0001;
14687
+ const MAP_WRITE: 0x0002;
14688
+ const COPY_SRC: 0x0004;
14689
+ const COPY_DST: 0x0008;
14690
+ const INDEX: 0x0010;
14691
+ const VERTEX: 0x0020;
14692
+ const UNIFORM: 0x0040;
14693
+ const STORAGE: 0x0080;
14694
+ const INDIRECT: 0x0100;
14695
+ const QUERY_RESOLVE: 0x0200;
14696
+ }
14697
+
14698
+ declare namespace GPUColorWrite {
14699
+ const RED: 0x1;
14700
+ const GREEN: 0x2;
14701
+ const BLUE: 0x4;
14702
+ const ALPHA: 0x8;
14703
+ const ALL: 0xF;
14704
+ }
14705
+
14706
+ declare namespace GPUMapMode {
14707
+ const READ: 0x0001;
14708
+ const WRITE: 0x0002;
14709
+ }
14710
+
14711
+ declare namespace GPUShaderStage {
14712
+ const VERTEX: 0x1;
14713
+ const FRAGMENT: 0x2;
14714
+ const COMPUTE: 0x4;
14715
+ }
14716
+
14717
+ declare namespace GPUTextureUsage {
14718
+ const COPY_SRC: 0x01;
14719
+ const COPY_DST: 0x02;
14720
+ const TEXTURE_BINDING: 0x04;
14721
+ const STORAGE_BINDING: 0x08;
14722
+ const RENDER_ATTACHMENT: 0x10;
14723
+ const TRANSIENT_ATTACHMENT: 0x20;
14724
+ }
14725
+
14651
14726
  declare namespace WebAssembly {
14652
14727
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
14653
14728
  interface CompileError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -541,6 +541,7 @@ interface GPUPipelineErrorInit {
541
541
 
542
542
  interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
543
543
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
544
+ immediateSize?: GPUSize32;
544
545
  }
545
546
 
546
547
  interface GPUPrimitiveState {
@@ -1957,21 +1958,53 @@ declare var Blob: {
1957
1958
  };
1958
1959
 
1959
1960
  interface Body {
1960
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
1961
+ /**
1962
+ * 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.
1963
+ *
1964
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
1965
+ */
1961
1966
  readonly body: ReadableStream<Uint8Array> | null;
1962
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
1967
+ /**
1968
+ * The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
1969
+ *
1970
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
1971
+ */
1963
1972
  readonly bodyUsed: boolean;
1964
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
1973
+ /**
1974
+ * The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
1975
+ *
1976
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
1977
+ */
1965
1978
  arrayBuffer(): Promise<ArrayBuffer>;
1966
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
1979
+ /**
1980
+ * The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
1981
+ *
1982
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
1983
+ */
1967
1984
  blob(): Promise<Blob>;
1968
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
1985
+ /**
1986
+ * The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
1987
+ *
1988
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
1989
+ */
1969
1990
  bytes(): Promise<Uint8Array>;
1970
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
1991
+ /**
1992
+ * The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
1993
+ *
1994
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
1995
+ */
1971
1996
  formData(): Promise<FormData>;
1972
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
1997
+ /**
1998
+ * 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.
1999
+ *
2000
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
2001
+ */
1973
2002
  json(): Promise<any>;
1974
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
2003
+ /**
2004
+ * 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.
2005
+ *
2006
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
2007
+ */
1975
2008
  text(): Promise<string>;
1976
2009
  }
1977
2010
 
@@ -8179,6 +8212,7 @@ interface OffscreenCanvas extends EventTarget {
8179
8212
  getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
8180
8213
  getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
8181
8214
  getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
8215
+ getContext(contextId: "webgpu"): GPUCanvasContext | null;
8182
8216
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
8183
8217
  /**
8184
8218
  * 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.
@@ -14645,6 +14679,47 @@ declare var XMLHttpRequestUpload: {
14645
14679
  new(): XMLHttpRequestUpload;
14646
14680
  };
14647
14681
 
14682
+ declare namespace GPUBufferUsage {
14683
+ const MAP_READ: 0x0001;
14684
+ const MAP_WRITE: 0x0002;
14685
+ const COPY_SRC: 0x0004;
14686
+ const COPY_DST: 0x0008;
14687
+ const INDEX: 0x0010;
14688
+ const VERTEX: 0x0020;
14689
+ const UNIFORM: 0x0040;
14690
+ const STORAGE: 0x0080;
14691
+ const INDIRECT: 0x0100;
14692
+ const QUERY_RESOLVE: 0x0200;
14693
+ }
14694
+
14695
+ declare namespace GPUColorWrite {
14696
+ const RED: 0x1;
14697
+ const GREEN: 0x2;
14698
+ const BLUE: 0x4;
14699
+ const ALPHA: 0x8;
14700
+ const ALL: 0xF;
14701
+ }
14702
+
14703
+ declare namespace GPUMapMode {
14704
+ const READ: 0x0001;
14705
+ const WRITE: 0x0002;
14706
+ }
14707
+
14708
+ declare namespace GPUShaderStage {
14709
+ const VERTEX: 0x1;
14710
+ const FRAGMENT: 0x2;
14711
+ const COMPUTE: 0x4;
14712
+ }
14713
+
14714
+ declare namespace GPUTextureUsage {
14715
+ const COPY_SRC: 0x01;
14716
+ const COPY_DST: 0x02;
14717
+ const TEXTURE_BINDING: 0x04;
14718
+ const STORAGE_BINDING: 0x08;
14719
+ const RENDER_ATTACHMENT: 0x10;
14720
+ const TRANSIENT_ATTACHMENT: 0x20;
14721
+ }
14722
+
14648
14723
  declare namespace WebAssembly {
14649
14724
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
14650
14725
  interface CompileError extends Error {
package/ts5.6/index.d.ts CHANGED
@@ -541,6 +541,7 @@ interface GPUPipelineErrorInit {
541
541
 
542
542
  interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
543
543
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
544
+ immediateSize?: GPUSize32;
544
545
  }
545
546
 
546
547
  interface GPUPrimitiveState {
@@ -1957,21 +1958,53 @@ declare var Blob: {
1957
1958
  };
1958
1959
 
1959
1960
  interface Body {
1960
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
1961
+ /**
1962
+ * 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.
1963
+ *
1964
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
1965
+ */
1961
1966
  readonly body: ReadableStream<Uint8Array> | null;
1962
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
1967
+ /**
1968
+ * The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
1969
+ *
1970
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
1971
+ */
1963
1972
  readonly bodyUsed: boolean;
1964
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
1973
+ /**
1974
+ * The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
1975
+ *
1976
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
1977
+ */
1965
1978
  arrayBuffer(): Promise<ArrayBuffer>;
1966
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
1979
+ /**
1980
+ * The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
1981
+ *
1982
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
1983
+ */
1967
1984
  blob(): Promise<Blob>;
1968
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
1985
+ /**
1986
+ * The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
1987
+ *
1988
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
1989
+ */
1969
1990
  bytes(): Promise<Uint8Array>;
1970
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
1991
+ /**
1992
+ * The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
1993
+ *
1994
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
1995
+ */
1971
1996
  formData(): Promise<FormData>;
1972
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
1997
+ /**
1998
+ * 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.
1999
+ *
2000
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
2001
+ */
1973
2002
  json(): Promise<any>;
1974
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
2003
+ /**
2004
+ * 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.
2005
+ *
2006
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
2007
+ */
1975
2008
  text(): Promise<string>;
1976
2009
  }
1977
2010
 
@@ -8179,6 +8212,7 @@ interface OffscreenCanvas extends EventTarget {
8179
8212
  getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
8180
8213
  getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
8181
8214
  getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
8215
+ getContext(contextId: "webgpu"): GPUCanvasContext | null;
8182
8216
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
8183
8217
  /**
8184
8218
  * 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.
@@ -14645,6 +14679,47 @@ declare var XMLHttpRequestUpload: {
14645
14679
  new(): XMLHttpRequestUpload;
14646
14680
  };
14647
14681
 
14682
+ declare namespace GPUBufferUsage {
14683
+ const MAP_READ: 0x0001;
14684
+ const MAP_WRITE: 0x0002;
14685
+ const COPY_SRC: 0x0004;
14686
+ const COPY_DST: 0x0008;
14687
+ const INDEX: 0x0010;
14688
+ const VERTEX: 0x0020;
14689
+ const UNIFORM: 0x0040;
14690
+ const STORAGE: 0x0080;
14691
+ const INDIRECT: 0x0100;
14692
+ const QUERY_RESOLVE: 0x0200;
14693
+ }
14694
+
14695
+ declare namespace GPUColorWrite {
14696
+ const RED: 0x1;
14697
+ const GREEN: 0x2;
14698
+ const BLUE: 0x4;
14699
+ const ALPHA: 0x8;
14700
+ const ALL: 0xF;
14701
+ }
14702
+
14703
+ declare namespace GPUMapMode {
14704
+ const READ: 0x0001;
14705
+ const WRITE: 0x0002;
14706
+ }
14707
+
14708
+ declare namespace GPUShaderStage {
14709
+ const VERTEX: 0x1;
14710
+ const FRAGMENT: 0x2;
14711
+ const COMPUTE: 0x4;
14712
+ }
14713
+
14714
+ declare namespace GPUTextureUsage {
14715
+ const COPY_SRC: 0x01;
14716
+ const COPY_DST: 0x02;
14717
+ const TEXTURE_BINDING: 0x04;
14718
+ const STORAGE_BINDING: 0x08;
14719
+ const RENDER_ATTACHMENT: 0x10;
14720
+ const TRANSIENT_ATTACHMENT: 0x20;
14721
+ }
14722
+
14648
14723
  declare namespace WebAssembly {
14649
14724
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
14650
14725
  interface CompileError extends Error {
package/ts5.9/index.d.ts CHANGED
@@ -541,6 +541,7 @@ interface GPUPipelineErrorInit {
541
541
 
542
542
  interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
543
543
  bindGroupLayouts: (GPUBindGroupLayout | null)[];
544
+ immediateSize?: GPUSize32;
544
545
  }
545
546
 
546
547
  interface GPUPrimitiveState {
@@ -1957,21 +1958,53 @@ declare var Blob: {
1957
1958
  };
1958
1959
 
1959
1960
  interface Body {
1960
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
1961
+ /**
1962
+ * 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.
1963
+ *
1964
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
1965
+ */
1961
1966
  readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
1962
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
1967
+ /**
1968
+ * The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
1969
+ *
1970
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
1971
+ */
1963
1972
  readonly bodyUsed: boolean;
1964
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
1973
+ /**
1974
+ * The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
1975
+ *
1976
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
1977
+ */
1965
1978
  arrayBuffer(): Promise<ArrayBuffer>;
1966
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
1979
+ /**
1980
+ * The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
1981
+ *
1982
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
1983
+ */
1967
1984
  blob(): Promise<Blob>;
1968
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
1985
+ /**
1986
+ * The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
1987
+ *
1988
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
1989
+ */
1969
1990
  bytes(): Promise<Uint8Array<ArrayBuffer>>;
1970
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
1991
+ /**
1992
+ * The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
1993
+ *
1994
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
1995
+ */
1971
1996
  formData(): Promise<FormData>;
1972
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
1997
+ /**
1998
+ * 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.
1999
+ *
2000
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
2001
+ */
1973
2002
  json(): Promise<any>;
1974
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
2003
+ /**
2004
+ * 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.
2005
+ *
2006
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
2007
+ */
1975
2008
  text(): Promise<string>;
1976
2009
  }
1977
2010
 
@@ -8179,6 +8212,7 @@ interface OffscreenCanvas extends EventTarget {
8179
8212
  getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
8180
8213
  getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
8181
8214
  getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
8215
+ getContext(contextId: "webgpu"): GPUCanvasContext | null;
8182
8216
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
8183
8217
  /**
8184
8218
  * 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.
@@ -14645,6 +14679,47 @@ declare var XMLHttpRequestUpload: {
14645
14679
  new(): XMLHttpRequestUpload;
14646
14680
  };
14647
14681
 
14682
+ declare namespace GPUBufferUsage {
14683
+ const MAP_READ: 0x0001;
14684
+ const MAP_WRITE: 0x0002;
14685
+ const COPY_SRC: 0x0004;
14686
+ const COPY_DST: 0x0008;
14687
+ const INDEX: 0x0010;
14688
+ const VERTEX: 0x0020;
14689
+ const UNIFORM: 0x0040;
14690
+ const STORAGE: 0x0080;
14691
+ const INDIRECT: 0x0100;
14692
+ const QUERY_RESOLVE: 0x0200;
14693
+ }
14694
+
14695
+ declare namespace GPUColorWrite {
14696
+ const RED: 0x1;
14697
+ const GREEN: 0x2;
14698
+ const BLUE: 0x4;
14699
+ const ALPHA: 0x8;
14700
+ const ALL: 0xF;
14701
+ }
14702
+
14703
+ declare namespace GPUMapMode {
14704
+ const READ: 0x0001;
14705
+ const WRITE: 0x0002;
14706
+ }
14707
+
14708
+ declare namespace GPUShaderStage {
14709
+ const VERTEX: 0x1;
14710
+ const FRAGMENT: 0x2;
14711
+ const COMPUTE: 0x4;
14712
+ }
14713
+
14714
+ declare namespace GPUTextureUsage {
14715
+ const COPY_SRC: 0x01;
14716
+ const COPY_DST: 0x02;
14717
+ const TEXTURE_BINDING: 0x04;
14718
+ const STORAGE_BINDING: 0x08;
14719
+ const RENDER_ATTACHMENT: 0x10;
14720
+ const TRANSIENT_ATTACHMENT: 0x20;
14721
+ }
14722
+
14648
14723
  declare namespace WebAssembly {
14649
14724
  /** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
14650
14725
  interface CompileError extends Error {