@types/sharedworker 0.0.228 → 0.0.230
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
|
@@ -29,4 +29,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
29
29
|
|
|
30
30
|
## Deploy Metadata
|
|
31
31
|
|
|
32
|
-
You can read what changed in version 0.0.
|
|
32
|
+
You can read what changed in version 0.0.230 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.230.
|
package/index.d.ts
CHANGED
|
@@ -397,6 +397,7 @@ interface GPUPipelineErrorInit {
|
|
|
397
397
|
|
|
398
398
|
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
399
399
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
400
|
+
immediateSize?: GPUSize32;
|
|
400
401
|
}
|
|
401
402
|
|
|
402
403
|
interface GPUPrimitiveState {
|
|
@@ -1389,21 +1390,53 @@ declare var Blob: {
|
|
|
1389
1390
|
};
|
|
1390
1391
|
|
|
1391
1392
|
interface Body {
|
|
1392
|
-
/**
|
|
1393
|
+
/**
|
|
1394
|
+
* 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.
|
|
1395
|
+
*
|
|
1396
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
|
|
1397
|
+
*/
|
|
1393
1398
|
readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
|
|
1394
|
-
/**
|
|
1399
|
+
/**
|
|
1400
|
+
* The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
|
|
1401
|
+
*
|
|
1402
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
|
|
1403
|
+
*/
|
|
1395
1404
|
readonly bodyUsed: boolean;
|
|
1396
|
-
/**
|
|
1405
|
+
/**
|
|
1406
|
+
* The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
|
|
1407
|
+
*
|
|
1408
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
|
|
1409
|
+
*/
|
|
1397
1410
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1398
|
-
/**
|
|
1411
|
+
/**
|
|
1412
|
+
* The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
|
|
1413
|
+
*
|
|
1414
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
|
|
1415
|
+
*/
|
|
1399
1416
|
blob(): Promise<Blob>;
|
|
1400
|
-
/**
|
|
1417
|
+
/**
|
|
1418
|
+
* The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
|
|
1419
|
+
*
|
|
1420
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
|
|
1421
|
+
*/
|
|
1401
1422
|
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
1402
|
-
/**
|
|
1423
|
+
/**
|
|
1424
|
+
* The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
|
|
1425
|
+
*
|
|
1426
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
|
|
1427
|
+
*/
|
|
1403
1428
|
formData(): Promise<FormData>;
|
|
1404
|
-
/**
|
|
1429
|
+
/**
|
|
1430
|
+
* 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.
|
|
1431
|
+
*
|
|
1432
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
|
|
1433
|
+
*/
|
|
1405
1434
|
json(): Promise<any>;
|
|
1406
|
-
/**
|
|
1435
|
+
/**
|
|
1436
|
+
* 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.
|
|
1437
|
+
*
|
|
1438
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
|
|
1439
|
+
*/
|
|
1407
1440
|
text(): Promise<string>;
|
|
1408
1441
|
}
|
|
1409
1442
|
|
|
@@ -6938,6 +6971,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
6938
6971
|
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
|
|
6939
6972
|
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
|
|
6940
6973
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
6974
|
+
getContext(contextId: "webgpu"): GPUCanvasContext | null;
|
|
6941
6975
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
6942
6976
|
/**
|
|
6943
6977
|
* 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.
|
|
@@ -13333,7 +13367,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
13333
13367
|
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";
|
|
13334
13368
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
13335
13369
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
13336
|
-
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";
|
|
13370
|
+
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";
|
|
13337
13371
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
13338
13372
|
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";
|
|
13339
13373
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -394,6 +394,7 @@ interface GPUPipelineErrorInit {
|
|
|
394
394
|
|
|
395
395
|
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
396
396
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
397
|
+
immediateSize?: GPUSize32;
|
|
397
398
|
}
|
|
398
399
|
|
|
399
400
|
interface GPUPrimitiveState {
|
|
@@ -1386,21 +1387,53 @@ declare var Blob: {
|
|
|
1386
1387
|
};
|
|
1387
1388
|
|
|
1388
1389
|
interface Body {
|
|
1389
|
-
/**
|
|
1390
|
+
/**
|
|
1391
|
+
* 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.
|
|
1392
|
+
*
|
|
1393
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
|
|
1394
|
+
*/
|
|
1390
1395
|
readonly body: ReadableStream<Uint8Array> | null;
|
|
1391
|
-
/**
|
|
1396
|
+
/**
|
|
1397
|
+
* The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
|
|
1398
|
+
*
|
|
1399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
|
|
1400
|
+
*/
|
|
1392
1401
|
readonly bodyUsed: boolean;
|
|
1393
|
-
/**
|
|
1402
|
+
/**
|
|
1403
|
+
* The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
|
|
1404
|
+
*
|
|
1405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
|
|
1406
|
+
*/
|
|
1394
1407
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1395
|
-
/**
|
|
1408
|
+
/**
|
|
1409
|
+
* The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
|
|
1410
|
+
*
|
|
1411
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
|
|
1412
|
+
*/
|
|
1396
1413
|
blob(): Promise<Blob>;
|
|
1397
|
-
/**
|
|
1414
|
+
/**
|
|
1415
|
+
* The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
|
|
1416
|
+
*
|
|
1417
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
|
|
1418
|
+
*/
|
|
1398
1419
|
bytes(): Promise<Uint8Array>;
|
|
1399
|
-
/**
|
|
1420
|
+
/**
|
|
1421
|
+
* The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
|
|
1422
|
+
*
|
|
1423
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
|
|
1424
|
+
*/
|
|
1400
1425
|
formData(): Promise<FormData>;
|
|
1401
|
-
/**
|
|
1426
|
+
/**
|
|
1427
|
+
* 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.
|
|
1428
|
+
*
|
|
1429
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
|
|
1430
|
+
*/
|
|
1402
1431
|
json(): Promise<any>;
|
|
1403
|
-
/**
|
|
1432
|
+
/**
|
|
1433
|
+
* 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.
|
|
1434
|
+
*
|
|
1435
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
|
|
1436
|
+
*/
|
|
1404
1437
|
text(): Promise<string>;
|
|
1405
1438
|
}
|
|
1406
1439
|
|
|
@@ -6935,6 +6968,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
6935
6968
|
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
|
|
6936
6969
|
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
|
|
6937
6970
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
6971
|
+
getContext(contextId: "webgpu"): GPUCanvasContext | null;
|
|
6938
6972
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
6939
6973
|
/**
|
|
6940
6974
|
* 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.
|
|
@@ -13330,7 +13364,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
13330
13364
|
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";
|
|
13331
13365
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
13332
13366
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
13333
|
-
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";
|
|
13367
|
+
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";
|
|
13334
13368
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
13335
13369
|
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";
|
|
13336
13370
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -394,6 +394,7 @@ interface GPUPipelineErrorInit {
|
|
|
394
394
|
|
|
395
395
|
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
396
396
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
397
|
+
immediateSize?: GPUSize32;
|
|
397
398
|
}
|
|
398
399
|
|
|
399
400
|
interface GPUPrimitiveState {
|
|
@@ -1386,21 +1387,53 @@ declare var Blob: {
|
|
|
1386
1387
|
};
|
|
1387
1388
|
|
|
1388
1389
|
interface Body {
|
|
1389
|
-
/**
|
|
1390
|
+
/**
|
|
1391
|
+
* 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.
|
|
1392
|
+
*
|
|
1393
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
|
|
1394
|
+
*/
|
|
1390
1395
|
readonly body: ReadableStream<Uint8Array> | null;
|
|
1391
|
-
/**
|
|
1396
|
+
/**
|
|
1397
|
+
* The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
|
|
1398
|
+
*
|
|
1399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
|
|
1400
|
+
*/
|
|
1392
1401
|
readonly bodyUsed: boolean;
|
|
1393
|
-
/**
|
|
1402
|
+
/**
|
|
1403
|
+
* The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
|
|
1404
|
+
*
|
|
1405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
|
|
1406
|
+
*/
|
|
1394
1407
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1395
|
-
/**
|
|
1408
|
+
/**
|
|
1409
|
+
* The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
|
|
1410
|
+
*
|
|
1411
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
|
|
1412
|
+
*/
|
|
1396
1413
|
blob(): Promise<Blob>;
|
|
1397
|
-
/**
|
|
1414
|
+
/**
|
|
1415
|
+
* The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
|
|
1416
|
+
*
|
|
1417
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
|
|
1418
|
+
*/
|
|
1398
1419
|
bytes(): Promise<Uint8Array>;
|
|
1399
|
-
/**
|
|
1420
|
+
/**
|
|
1421
|
+
* The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
|
|
1422
|
+
*
|
|
1423
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
|
|
1424
|
+
*/
|
|
1400
1425
|
formData(): Promise<FormData>;
|
|
1401
|
-
/**
|
|
1426
|
+
/**
|
|
1427
|
+
* 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.
|
|
1428
|
+
*
|
|
1429
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
|
|
1430
|
+
*/
|
|
1402
1431
|
json(): Promise<any>;
|
|
1403
|
-
/**
|
|
1432
|
+
/**
|
|
1433
|
+
* 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.
|
|
1434
|
+
*
|
|
1435
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
|
|
1436
|
+
*/
|
|
1404
1437
|
text(): Promise<string>;
|
|
1405
1438
|
}
|
|
1406
1439
|
|
|
@@ -6935,6 +6968,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
6935
6968
|
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
|
|
6936
6969
|
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
|
|
6937
6970
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
6971
|
+
getContext(contextId: "webgpu"): GPUCanvasContext | null;
|
|
6938
6972
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
6939
6973
|
/**
|
|
6940
6974
|
* 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.
|
|
@@ -13330,7 +13364,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
13330
13364
|
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";
|
|
13331
13365
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
13332
13366
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
13333
|
-
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";
|
|
13367
|
+
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";
|
|
13334
13368
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
13335
13369
|
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";
|
|
13336
13370
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -394,6 +394,7 @@ interface GPUPipelineErrorInit {
|
|
|
394
394
|
|
|
395
395
|
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
396
396
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
397
|
+
immediateSize?: GPUSize32;
|
|
397
398
|
}
|
|
398
399
|
|
|
399
400
|
interface GPUPrimitiveState {
|
|
@@ -1386,21 +1387,53 @@ declare var Blob: {
|
|
|
1386
1387
|
};
|
|
1387
1388
|
|
|
1388
1389
|
interface Body {
|
|
1389
|
-
/**
|
|
1390
|
+
/**
|
|
1391
|
+
* 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.
|
|
1392
|
+
*
|
|
1393
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
|
|
1394
|
+
*/
|
|
1390
1395
|
readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
|
|
1391
|
-
/**
|
|
1396
|
+
/**
|
|
1397
|
+
* The **`bodyUsed`** read-only property of the Request interface is a boolean value that indicates whether the request body has been read yet.
|
|
1398
|
+
*
|
|
1399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)
|
|
1400
|
+
*/
|
|
1392
1401
|
readonly bodyUsed: boolean;
|
|
1393
|
-
/**
|
|
1402
|
+
/**
|
|
1403
|
+
* The **`arrayBuffer()`** method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
|
|
1404
|
+
*
|
|
1405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
|
|
1406
|
+
*/
|
|
1394
1407
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1395
|
-
/**
|
|
1408
|
+
/**
|
|
1409
|
+
* The **`blob()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
|
|
1410
|
+
*
|
|
1411
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
|
|
1412
|
+
*/
|
|
1396
1413
|
blob(): Promise<Blob>;
|
|
1397
|
-
/**
|
|
1414
|
+
/**
|
|
1415
|
+
* The **`bytes()`** method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
|
|
1416
|
+
*
|
|
1417
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
|
|
1418
|
+
*/
|
|
1398
1419
|
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
1399
|
-
/**
|
|
1420
|
+
/**
|
|
1421
|
+
* The **`formData()`** method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.
|
|
1422
|
+
*
|
|
1423
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
|
|
1424
|
+
*/
|
|
1400
1425
|
formData(): Promise<FormData>;
|
|
1401
|
-
/**
|
|
1426
|
+
/**
|
|
1427
|
+
* 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.
|
|
1428
|
+
*
|
|
1429
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json)
|
|
1430
|
+
*/
|
|
1402
1431
|
json(): Promise<any>;
|
|
1403
|
-
/**
|
|
1432
|
+
/**
|
|
1433
|
+
* 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.
|
|
1434
|
+
*
|
|
1435
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
|
|
1436
|
+
*/
|
|
1404
1437
|
text(): Promise<string>;
|
|
1405
1438
|
}
|
|
1406
1439
|
|
|
@@ -6935,6 +6968,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
6935
6968
|
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
|
|
6936
6969
|
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
|
|
6937
6970
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
6971
|
+
getContext(contextId: "webgpu"): GPUCanvasContext | null;
|
|
6938
6972
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
6939
6973
|
/**
|
|
6940
6974
|
* 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.
|
|
@@ -13330,7 +13364,7 @@ type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
|
13330
13364
|
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";
|
|
13331
13365
|
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
13332
13366
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
13333
|
-
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";
|
|
13367
|
+
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";
|
|
13334
13368
|
type GPUVertexStepMode = "instance" | "vertex";
|
|
13335
13369
|
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";
|
|
13336
13370
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|