@types/webworker 0.0.78 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +43 -9
- package/package.json +1 -1
- package/ts5.5/index.d.ts +43 -9
- package/ts5.6/index.d.ts +43 -9
- package/ts5.9/index.d.ts +43 -9
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.
|
|
50
|
+
You can read what changed in version 0.0.80 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.80.
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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.
|
|
@@ -15472,7 +15506,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
15472
15506
|
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";
|
|
15473
15507
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
15474
15508
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
15475
|
-
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";
|
|
15509
|
+
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";
|
|
15476
15510
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
15477
15511
|
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";
|
|
15478
15512
|
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
|
package/package.json
CHANGED
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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.
|
|
@@ -15469,7 +15503,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
15469
15503
|
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";
|
|
15470
15504
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
15471
15505
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
15472
|
-
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";
|
|
15506
|
+
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";
|
|
15473
15507
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
15474
15508
|
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";
|
|
15475
15509
|
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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.
|
|
@@ -15469,7 +15503,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
15469
15503
|
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";
|
|
15470
15504
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
15471
15505
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
15472
|
-
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";
|
|
15506
|
+
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";
|
|
15473
15507
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
15474
15508
|
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";
|
|
15475
15509
|
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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.
|
|
@@ -15469,7 +15503,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
15469
15503
|
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";
|
|
15470
15504
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
15471
15505
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
15472
|
-
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";
|
|
15506
|
+
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";
|
|
15473
15507
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
15474
15508
|
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";
|
|
15475
15509
|
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
|