@types/web 0.0.329 → 0.0.330

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.329 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.329.
50
+ You can read what changed in version 0.0.330 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.330.
package/index.d.ts CHANGED
@@ -808,6 +808,22 @@ interface FullscreenOptions {
808
808
  navigationUI?: FullscreenNavigationUI;
809
809
  }
810
810
 
811
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
812
+ entries: GPUBindGroupEntry[];
813
+ layout: GPUBindGroupLayout;
814
+ }
815
+
816
+ interface GPUBindGroupEntry {
817
+ binding: GPUIndex32;
818
+ resource: GPUBindingResource;
819
+ }
820
+
821
+ interface GPUBufferBinding {
822
+ buffer: GPUBuffer;
823
+ offset?: GPUSize64;
824
+ size?: GPUSize64;
825
+ }
826
+
811
827
  interface GPUCanvasConfiguration {
812
828
  alphaMode?: GPUCanvasAlphaMode;
813
829
  colorSpace?: PredefinedColorSpace;
@@ -859,6 +875,11 @@ interface GPUExtent3DDict {
859
875
  width: GPUIntegerCoordinate;
860
876
  }
861
877
 
878
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
879
+ colorSpace?: PredefinedColorSpace;
880
+ source: HTMLVideoElement | VideoFrame;
881
+ }
882
+
862
883
  interface GPUObjectDescriptorBase {
863
884
  label?: string;
864
885
  }
@@ -15321,6 +15342,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
15321
15342
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
15322
15343
  */
15323
15344
  readonly queue: GPUQueue;
15345
+ /**
15346
+ * The **`createBindGroup()`** method of the GPUDevice interface creates a GPUBindGroup based on a GPUBindGroupLayout that defines a set of resources to be bound together in a group and how those resources are used in shader stages.
15347
+ *
15348
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
15349
+ */
15350
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
15351
+ /**
15352
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
15353
+ *
15354
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
15355
+ */
15356
+ destroy(): void;
15357
+ /**
15358
+ * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations.
15359
+ *
15360
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
15361
+ */
15362
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
15363
+ /**
15364
+ * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred.
15365
+ *
15366
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
15367
+ */
15368
+ popErrorScope(): Promise<GPUError | null>;
15369
+ /**
15370
+ * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type.
15371
+ *
15372
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
15373
+ */
15374
+ pushErrorScope(filter: GPUErrorFilter): void;
15324
15375
  addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15325
15376
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15326
15377
  removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -28323,6 +28374,12 @@ declare var PushManager: {
28323
28374
  readonly supportedContentEncodings: ReadonlyArray<string>;
28324
28375
  };
28325
28376
 
28377
+ /** Available only in secure contexts. */
28378
+ interface PushManagerAttribute {
28379
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
28380
+ readonly pushManager: PushManager;
28381
+ }
28382
+
28326
28383
  /**
28327
28384
  * The **`PushSubscription`** interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. This information must be passed to the application server, using any desired application-specific method.
28328
28385
  * Available only in secure contexts.
@@ -34741,7 +34798,7 @@ interface ServiceWorkerRegistrationEventMap {
34741
34798
  *
34742
34799
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
34743
34800
  */
34744
- interface ServiceWorkerRegistration extends EventTarget {
34801
+ interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
34745
34802
  /**
34746
34803
  * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated. This property is initially set to null.
34747
34804
  *
@@ -43731,6 +43788,7 @@ type GLsizei = number;
43731
43788
  type GLsizeiptr = number;
43732
43789
  type GLuint = number;
43733
43790
  type GLuint64 = number;
43791
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
43734
43792
  type GPUBufferDynamicOffset = number;
43735
43793
  type GPUColor = number[] | GPUColorDict;
43736
43794
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
@@ -43860,6 +43918,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
43860
43918
  type GPUCanvasToneMappingMode = "extended" | "standard";
43861
43919
  type GPUCompilationMessageType = "error" | "info" | "warning";
43862
43920
  type GPUDeviceLostReason = "destroyed" | "unknown";
43921
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
43863
43922
  type GPUIndexFormat = "uint16" | "uint32";
43864
43923
  type GPULoadOp = "clear" | "load";
43865
43924
  type GPUPipelineErrorReason = "internal" | "validation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.329",
3
+ "version": "0.0.330",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -805,6 +805,22 @@ interface FullscreenOptions {
805
805
  navigationUI?: FullscreenNavigationUI;
806
806
  }
807
807
 
808
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
809
+ entries: GPUBindGroupEntry[];
810
+ layout: GPUBindGroupLayout;
811
+ }
812
+
813
+ interface GPUBindGroupEntry {
814
+ binding: GPUIndex32;
815
+ resource: GPUBindingResource;
816
+ }
817
+
818
+ interface GPUBufferBinding {
819
+ buffer: GPUBuffer;
820
+ offset?: GPUSize64;
821
+ size?: GPUSize64;
822
+ }
823
+
808
824
  interface GPUCanvasConfiguration {
809
825
  alphaMode?: GPUCanvasAlphaMode;
810
826
  colorSpace?: PredefinedColorSpace;
@@ -856,6 +872,11 @@ interface GPUExtent3DDict {
856
872
  width: GPUIntegerCoordinate;
857
873
  }
858
874
 
875
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
876
+ colorSpace?: PredefinedColorSpace;
877
+ source: HTMLVideoElement | VideoFrame;
878
+ }
879
+
859
880
  interface GPUObjectDescriptorBase {
860
881
  label?: string;
861
882
  }
@@ -15307,6 +15328,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
15307
15328
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
15308
15329
  */
15309
15330
  readonly queue: GPUQueue;
15331
+ /**
15332
+ * The **`createBindGroup()`** method of the GPUDevice interface creates a GPUBindGroup based on a GPUBindGroupLayout that defines a set of resources to be bound together in a group and how those resources are used in shader stages.
15333
+ *
15334
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
15335
+ */
15336
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
15337
+ /**
15338
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
15339
+ *
15340
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
15341
+ */
15342
+ destroy(): void;
15343
+ /**
15344
+ * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations.
15345
+ *
15346
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
15347
+ */
15348
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
15349
+ /**
15350
+ * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred.
15351
+ *
15352
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
15353
+ */
15354
+ popErrorScope(): Promise<GPUError | null>;
15355
+ /**
15356
+ * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type.
15357
+ *
15358
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
15359
+ */
15360
+ pushErrorScope(filter: GPUErrorFilter): void;
15310
15361
  addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15311
15362
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15312
15363
  removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -28299,6 +28350,12 @@ declare var PushManager: {
28299
28350
  readonly supportedContentEncodings: ReadonlyArray<string>;
28300
28351
  };
28301
28352
 
28353
+ /** Available only in secure contexts. */
28354
+ interface PushManagerAttribute {
28355
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
28356
+ readonly pushManager: PushManager;
28357
+ }
28358
+
28302
28359
  /**
28303
28360
  * The **`PushSubscription`** interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. This information must be passed to the application server, using any desired application-specific method.
28304
28361
  * Available only in secure contexts.
@@ -34716,7 +34773,7 @@ interface ServiceWorkerRegistrationEventMap {
34716
34773
  *
34717
34774
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
34718
34775
  */
34719
- interface ServiceWorkerRegistration extends EventTarget {
34776
+ interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
34720
34777
  /**
34721
34778
  * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated. This property is initially set to null.
34722
34779
  *
@@ -43705,6 +43762,7 @@ type GLsizei = number;
43705
43762
  type GLsizeiptr = number;
43706
43763
  type GLuint = number;
43707
43764
  type GLuint64 = number;
43765
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
43708
43766
  type GPUBufferDynamicOffset = number;
43709
43767
  type GPUColor = number[] | GPUColorDict;
43710
43768
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
@@ -43834,6 +43892,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
43834
43892
  type GPUCanvasToneMappingMode = "extended" | "standard";
43835
43893
  type GPUCompilationMessageType = "error" | "info" | "warning";
43836
43894
  type GPUDeviceLostReason = "destroyed" | "unknown";
43895
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
43837
43896
  type GPUIndexFormat = "uint16" | "uint32";
43838
43897
  type GPULoadOp = "clear" | "load";
43839
43898
  type GPUPipelineErrorReason = "internal" | "validation";
package/ts5.6/index.d.ts CHANGED
@@ -805,6 +805,22 @@ interface FullscreenOptions {
805
805
  navigationUI?: FullscreenNavigationUI;
806
806
  }
807
807
 
808
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
809
+ entries: GPUBindGroupEntry[];
810
+ layout: GPUBindGroupLayout;
811
+ }
812
+
813
+ interface GPUBindGroupEntry {
814
+ binding: GPUIndex32;
815
+ resource: GPUBindingResource;
816
+ }
817
+
818
+ interface GPUBufferBinding {
819
+ buffer: GPUBuffer;
820
+ offset?: GPUSize64;
821
+ size?: GPUSize64;
822
+ }
823
+
808
824
  interface GPUCanvasConfiguration {
809
825
  alphaMode?: GPUCanvasAlphaMode;
810
826
  colorSpace?: PredefinedColorSpace;
@@ -856,6 +872,11 @@ interface GPUExtent3DDict {
856
872
  width: GPUIntegerCoordinate;
857
873
  }
858
874
 
875
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
876
+ colorSpace?: PredefinedColorSpace;
877
+ source: HTMLVideoElement | VideoFrame;
878
+ }
879
+
859
880
  interface GPUObjectDescriptorBase {
860
881
  label?: string;
861
882
  }
@@ -15318,6 +15339,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
15318
15339
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
15319
15340
  */
15320
15341
  readonly queue: GPUQueue;
15342
+ /**
15343
+ * The **`createBindGroup()`** method of the GPUDevice interface creates a GPUBindGroup based on a GPUBindGroupLayout that defines a set of resources to be bound together in a group and how those resources are used in shader stages.
15344
+ *
15345
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
15346
+ */
15347
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
15348
+ /**
15349
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
15350
+ *
15351
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
15352
+ */
15353
+ destroy(): void;
15354
+ /**
15355
+ * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations.
15356
+ *
15357
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
15358
+ */
15359
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
15360
+ /**
15361
+ * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred.
15362
+ *
15363
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
15364
+ */
15365
+ popErrorScope(): Promise<GPUError | null>;
15366
+ /**
15367
+ * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type.
15368
+ *
15369
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
15370
+ */
15371
+ pushErrorScope(filter: GPUErrorFilter): void;
15321
15372
  addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15322
15373
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15323
15374
  removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -28320,6 +28371,12 @@ declare var PushManager: {
28320
28371
  readonly supportedContentEncodings: ReadonlyArray<string>;
28321
28372
  };
28322
28373
 
28374
+ /** Available only in secure contexts. */
28375
+ interface PushManagerAttribute {
28376
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
28377
+ readonly pushManager: PushManager;
28378
+ }
28379
+
28323
28380
  /**
28324
28381
  * The **`PushSubscription`** interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. This information must be passed to the application server, using any desired application-specific method.
28325
28382
  * Available only in secure contexts.
@@ -34738,7 +34795,7 @@ interface ServiceWorkerRegistrationEventMap {
34738
34795
  *
34739
34796
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
34740
34797
  */
34741
- interface ServiceWorkerRegistration extends EventTarget {
34798
+ interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
34742
34799
  /**
34743
34800
  * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated. This property is initially set to null.
34744
34801
  *
@@ -43728,6 +43785,7 @@ type GLsizei = number;
43728
43785
  type GLsizeiptr = number;
43729
43786
  type GLuint = number;
43730
43787
  type GLuint64 = number;
43788
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
43731
43789
  type GPUBufferDynamicOffset = number;
43732
43790
  type GPUColor = number[] | GPUColorDict;
43733
43791
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
@@ -43857,6 +43915,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
43857
43915
  type GPUCanvasToneMappingMode = "extended" | "standard";
43858
43916
  type GPUCompilationMessageType = "error" | "info" | "warning";
43859
43917
  type GPUDeviceLostReason = "destroyed" | "unknown";
43918
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
43860
43919
  type GPUIndexFormat = "uint16" | "uint32";
43861
43920
  type GPULoadOp = "clear" | "load";
43862
43921
  type GPUPipelineErrorReason = "internal" | "validation";
package/ts5.9/index.d.ts CHANGED
@@ -805,6 +805,22 @@ interface FullscreenOptions {
805
805
  navigationUI?: FullscreenNavigationUI;
806
806
  }
807
807
 
808
+ interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
809
+ entries: GPUBindGroupEntry[];
810
+ layout: GPUBindGroupLayout;
811
+ }
812
+
813
+ interface GPUBindGroupEntry {
814
+ binding: GPUIndex32;
815
+ resource: GPUBindingResource;
816
+ }
817
+
818
+ interface GPUBufferBinding {
819
+ buffer: GPUBuffer;
820
+ offset?: GPUSize64;
821
+ size?: GPUSize64;
822
+ }
823
+
808
824
  interface GPUCanvasConfiguration {
809
825
  alphaMode?: GPUCanvasAlphaMode;
810
826
  colorSpace?: PredefinedColorSpace;
@@ -856,6 +872,11 @@ interface GPUExtent3DDict {
856
872
  width: GPUIntegerCoordinate;
857
873
  }
858
874
 
875
+ interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
876
+ colorSpace?: PredefinedColorSpace;
877
+ source: HTMLVideoElement | VideoFrame;
878
+ }
879
+
859
880
  interface GPUObjectDescriptorBase {
860
881
  label?: string;
861
882
  }
@@ -15318,6 +15339,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
15318
15339
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
15319
15340
  */
15320
15341
  readonly queue: GPUQueue;
15342
+ /**
15343
+ * The **`createBindGroup()`** method of the GPUDevice interface creates a GPUBindGroup based on a GPUBindGroupLayout that defines a set of resources to be bound together in a group and how those resources are used in shader stages.
15344
+ *
15345
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
15346
+ */
15347
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
15348
+ /**
15349
+ * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
15350
+ *
15351
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
15352
+ */
15353
+ destroy(): void;
15354
+ /**
15355
+ * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations.
15356
+ *
15357
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
15358
+ */
15359
+ importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
15360
+ /**
15361
+ * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred.
15362
+ *
15363
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
15364
+ */
15365
+ popErrorScope(): Promise<GPUError | null>;
15366
+ /**
15367
+ * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type.
15368
+ *
15369
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
15370
+ */
15371
+ pushErrorScope(filter: GPUErrorFilter): void;
15321
15372
  addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15322
15373
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15323
15374
  removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -28320,6 +28371,12 @@ declare var PushManager: {
28320
28371
  readonly supportedContentEncodings: ReadonlyArray<string>;
28321
28372
  };
28322
28373
 
28374
+ /** Available only in secure contexts. */
28375
+ interface PushManagerAttribute {
28376
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
28377
+ readonly pushManager: PushManager;
28378
+ }
28379
+
28323
28380
  /**
28324
28381
  * The **`PushSubscription`** interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. This information must be passed to the application server, using any desired application-specific method.
28325
28382
  * Available only in secure contexts.
@@ -34738,7 +34795,7 @@ interface ServiceWorkerRegistrationEventMap {
34738
34795
  *
34739
34796
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
34740
34797
  */
34741
- interface ServiceWorkerRegistration extends EventTarget {
34798
+ interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
34742
34799
  /**
34743
34800
  * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated. This property is initially set to null.
34744
34801
  *
@@ -43728,6 +43785,7 @@ type GLsizei = number;
43728
43785
  type GLsizeiptr = number;
43729
43786
  type GLuint = number;
43730
43787
  type GLuint64 = number;
43788
+ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
43731
43789
  type GPUBufferDynamicOffset = number;
43732
43790
  type GPUColor = number[] | GPUColorDict;
43733
43791
  type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
@@ -43857,6 +43915,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
43857
43915
  type GPUCanvasToneMappingMode = "extended" | "standard";
43858
43916
  type GPUCompilationMessageType = "error" | "info" | "warning";
43859
43917
  type GPUDeviceLostReason = "destroyed" | "unknown";
43918
+ type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
43860
43919
  type GPUIndexFormat = "uint16" | "uint32";
43861
43920
  type GPULoadOp = "clear" | "load";
43862
43921
  type GPUPipelineErrorReason = "internal" | "validation";