@types/serviceworker 0.0.188 → 0.0.189

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
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.188 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.188.
31
+ You can read what changed in version 0.0.189 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.189.
package/index.d.ts CHANGED
@@ -459,6 +459,10 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
459
459
  mipmapFilter?: GPUMipmapFilterMode;
460
460
  }
461
461
 
462
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
463
+ code: string;
464
+ }
465
+
462
466
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
463
467
  buffer: GPUBuffer;
464
468
  }
@@ -476,6 +480,16 @@ interface GPUTexelCopyTextureInfo {
476
480
  texture: GPUTexture;
477
481
  }
478
482
 
483
+ interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
484
+ dimension?: GPUTextureDimension;
485
+ format: GPUTextureFormat;
486
+ mipLevelCount?: GPUIntegerCoordinate;
487
+ sampleCount?: GPUSize32;
488
+ size: GPUExtent3D;
489
+ usage: GPUTextureUsageFlags;
490
+ viewFormats?: GPUTextureFormat[];
491
+ }
492
+
479
493
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
480
494
  arrayLayerCount?: GPUIntegerCoordinate;
481
495
  aspect?: GPUTextureAspect;
@@ -4894,6 +4908,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
4894
4908
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
4895
4909
  */
4896
4910
  createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
4911
+ /**
4912
+ * The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
4913
+ *
4914
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
4915
+ */
4916
+ createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
4917
+ /**
4918
+ * The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
4919
+ *
4920
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
4921
+ */
4922
+ createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
4897
4923
  /**
4898
4924
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
4899
4925
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.188",
3
+ "version": "0.0.189",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -456,6 +456,10 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
456
456
  mipmapFilter?: GPUMipmapFilterMode;
457
457
  }
458
458
 
459
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
460
+ code: string;
461
+ }
462
+
459
463
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
460
464
  buffer: GPUBuffer;
461
465
  }
@@ -473,6 +477,16 @@ interface GPUTexelCopyTextureInfo {
473
477
  texture: GPUTexture;
474
478
  }
475
479
 
480
+ interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
481
+ dimension?: GPUTextureDimension;
482
+ format: GPUTextureFormat;
483
+ mipLevelCount?: GPUIntegerCoordinate;
484
+ sampleCount?: GPUSize32;
485
+ size: GPUExtent3D;
486
+ usage: GPUTextureUsageFlags;
487
+ viewFormats?: GPUTextureFormat[];
488
+ }
489
+
476
490
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
477
491
  arrayLayerCount?: GPUIntegerCoordinate;
478
492
  aspect?: GPUTextureAspect;
@@ -4891,6 +4905,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
4891
4905
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
4892
4906
  */
4893
4907
  createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
4908
+ /**
4909
+ * The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
4910
+ *
4911
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
4912
+ */
4913
+ createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
4914
+ /**
4915
+ * The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
4916
+ *
4917
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
4918
+ */
4919
+ createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
4894
4920
  /**
4895
4921
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
4896
4922
  *
package/ts5.6/index.d.ts CHANGED
@@ -456,6 +456,10 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
456
456
  mipmapFilter?: GPUMipmapFilterMode;
457
457
  }
458
458
 
459
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
460
+ code: string;
461
+ }
462
+
459
463
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
460
464
  buffer: GPUBuffer;
461
465
  }
@@ -473,6 +477,16 @@ interface GPUTexelCopyTextureInfo {
473
477
  texture: GPUTexture;
474
478
  }
475
479
 
480
+ interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
481
+ dimension?: GPUTextureDimension;
482
+ format: GPUTextureFormat;
483
+ mipLevelCount?: GPUIntegerCoordinate;
484
+ sampleCount?: GPUSize32;
485
+ size: GPUExtent3D;
486
+ usage: GPUTextureUsageFlags;
487
+ viewFormats?: GPUTextureFormat[];
488
+ }
489
+
476
490
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
477
491
  arrayLayerCount?: GPUIntegerCoordinate;
478
492
  aspect?: GPUTextureAspect;
@@ -4891,6 +4905,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
4891
4905
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
4892
4906
  */
4893
4907
  createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
4908
+ /**
4909
+ * The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
4910
+ *
4911
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
4912
+ */
4913
+ createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
4914
+ /**
4915
+ * The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
4916
+ *
4917
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
4918
+ */
4919
+ createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
4894
4920
  /**
4895
4921
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
4896
4922
  *
package/ts5.9/index.d.ts CHANGED
@@ -456,6 +456,10 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
456
456
  mipmapFilter?: GPUMipmapFilterMode;
457
457
  }
458
458
 
459
+ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
460
+ code: string;
461
+ }
462
+
459
463
  interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
460
464
  buffer: GPUBuffer;
461
465
  }
@@ -473,6 +477,16 @@ interface GPUTexelCopyTextureInfo {
473
477
  texture: GPUTexture;
474
478
  }
475
479
 
480
+ interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
481
+ dimension?: GPUTextureDimension;
482
+ format: GPUTextureFormat;
483
+ mipLevelCount?: GPUIntegerCoordinate;
484
+ sampleCount?: GPUSize32;
485
+ size: GPUExtent3D;
486
+ usage: GPUTextureUsageFlags;
487
+ viewFormats?: GPUTextureFormat[];
488
+ }
489
+
476
490
  interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
477
491
  arrayLayerCount?: GPUIntegerCoordinate;
478
492
  aspect?: GPUTextureAspect;
@@ -4891,6 +4905,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
4891
4905
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
4892
4906
  */
4893
4907
  createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
4908
+ /**
4909
+ * The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
4910
+ *
4911
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
4912
+ */
4913
+ createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
4914
+ /**
4915
+ * The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
4916
+ *
4917
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
4918
+ */
4919
+ createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
4894
4920
  /**
4895
4921
  * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
4896
4922
  *