@types/sharedworker 0.0.228 → 0.0.229

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
@@ -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.228 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.228.
32
+ You can read what changed in version 0.0.229 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.229.
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.228",
3
+ "version": "0.0.229",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
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.
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
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.
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
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
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
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.