@types/webworker 0.0.78 → 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.78 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.78.
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.78",
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.
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.
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.