@types/serviceworker 0.0.173 → 0.0.175

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.173 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.173.
31
+ You can read what changed in version 0.0.175 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.175.
package/index.d.ts CHANGED
@@ -275,10 +275,29 @@ interface FontFaceSetLoadEventInit extends EventInit {
275
275
  fontfaces?: FontFace[];
276
276
  }
277
277
 
278
+ interface GPUObjectDescriptorBase {
279
+ label?: string;
280
+ }
281
+
278
282
  interface GPUPipelineErrorInit {
279
283
  reason: GPUPipelineErrorReason;
280
284
  }
281
285
 
286
+ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
287
+ arrayLayerCount?: GPUIntegerCoordinate;
288
+ aspect?: GPUTextureAspect;
289
+ baseArrayLayer?: GPUIntegerCoordinate;
290
+ baseMipLevel?: GPUIntegerCoordinate;
291
+ dimension?: GPUTextureViewDimension;
292
+ format?: GPUTextureFormat;
293
+ mipLevelCount?: GPUIntegerCoordinate;
294
+ usage?: GPUTextureUsageFlags;
295
+ }
296
+
297
+ interface GPUUncapturedErrorEventInit extends EventInit {
298
+ error: GPUError;
299
+ }
300
+
282
301
  interface GetNotificationOptions {
283
302
  tag?: string;
284
303
  }
@@ -4181,6 +4200,88 @@ declare var FormData: {
4181
4200
  new(): FormData;
4182
4201
  };
4183
4202
 
4203
+ /**
4204
+ * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
4205
+ * Available only in secure contexts.
4206
+ *
4207
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
4208
+ */
4209
+ interface GPUBindGroup extends GPUObjectBase {
4210
+ }
4211
+
4212
+ declare var GPUBindGroup: {
4213
+ prototype: GPUBindGroup;
4214
+ new(): GPUBindGroup;
4215
+ };
4216
+
4217
+ /**
4218
+ * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups.
4219
+ * Available only in secure contexts.
4220
+ *
4221
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
4222
+ */
4223
+ interface GPUBindGroupLayout extends GPUObjectBase {
4224
+ }
4225
+
4226
+ declare var GPUBindGroupLayout: {
4227
+ prototype: GPUBindGroupLayout;
4228
+ new(): GPUBindGroupLayout;
4229
+ };
4230
+
4231
+ /**
4232
+ * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
4233
+ * Available only in secure contexts.
4234
+ *
4235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
4236
+ */
4237
+ interface GPUCommandBuffer extends GPUObjectBase {
4238
+ }
4239
+
4240
+ declare var GPUCommandBuffer: {
4241
+ prototype: GPUCommandBuffer;
4242
+ new(): GPUCommandBuffer;
4243
+ };
4244
+
4245
+ /**
4246
+ * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
4247
+ * Available only in secure contexts.
4248
+ *
4249
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
4250
+ */
4251
+ interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
4252
+ }
4253
+
4254
+ declare var GPUComputePipeline: {
4255
+ prototype: GPUComputePipeline;
4256
+ new(): GPUComputePipeline;
4257
+ };
4258
+
4259
+ /**
4260
+ * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
4261
+ * Available only in secure contexts.
4262
+ *
4263
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
4264
+ */
4265
+ interface GPUDeviceLostInfo {
4266
+ /**
4267
+ * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
4268
+ *
4269
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
4270
+ */
4271
+ readonly message: string;
4272
+ /**
4273
+ * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
4274
+ *
4275
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
4276
+ */
4277
+ readonly reason: GPUDeviceLostReason;
4278
+ }
4279
+
4280
+ declare var GPUDeviceLostInfo: {
4281
+ prototype: GPUDeviceLostInfo;
4282
+ new(): GPUDeviceLostInfo;
4283
+ };
4284
+
4184
4285
  /**
4185
4286
  * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
4186
4287
  * Available only in secure contexts.
@@ -4201,6 +4302,58 @@ declare var GPUError: {
4201
4302
  new(): GPUError;
4202
4303
  };
4203
4304
 
4305
+ /**
4306
+ * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations.
4307
+ * Available only in secure contexts.
4308
+ *
4309
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
4310
+ */
4311
+ interface GPUExternalTexture extends GPUObjectBase {
4312
+ }
4313
+
4314
+ declare var GPUExternalTexture: {
4315
+ prototype: GPUExternalTexture;
4316
+ new(): GPUExternalTexture;
4317
+ };
4318
+
4319
+ /**
4320
+ * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied.
4321
+ * Available only in secure contexts.
4322
+ *
4323
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
4324
+ */
4325
+ interface GPUInternalError extends GPUError {
4326
+ }
4327
+
4328
+ declare var GPUInternalError: {
4329
+ prototype: GPUInternalError;
4330
+ new(message: string): GPUInternalError;
4331
+ };
4332
+
4333
+ interface GPUObjectBase {
4334
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
4335
+ label: string;
4336
+ }
4337
+
4338
+ /**
4339
+ * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation.
4340
+ * Available only in secure contexts.
4341
+ *
4342
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
4343
+ */
4344
+ interface GPUOutOfMemoryError extends GPUError {
4345
+ }
4346
+
4347
+ declare var GPUOutOfMemoryError: {
4348
+ prototype: GPUOutOfMemoryError;
4349
+ new(message: string): GPUOutOfMemoryError;
4350
+ };
4351
+
4352
+ interface GPUPipelineBase {
4353
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
4354
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
4355
+ }
4356
+
4204
4357
  /**
4205
4358
  * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects.
4206
4359
  * Available only in secure contexts.
@@ -4221,6 +4374,275 @@ declare var GPUPipelineError: {
4221
4374
  new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
4222
4375
  };
4223
4376
 
4377
+ /**
4378
+ * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
4379
+ * Available only in secure contexts.
4380
+ *
4381
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
4382
+ */
4383
+ interface GPUPipelineLayout extends GPUObjectBase {
4384
+ }
4385
+
4386
+ declare var GPUPipelineLayout: {
4387
+ prototype: GPUPipelineLayout;
4388
+ new(): GPUPipelineLayout;
4389
+ };
4390
+
4391
+ /**
4392
+ * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
4393
+ * Available only in secure contexts.
4394
+ *
4395
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
4396
+ */
4397
+ interface GPURenderBundle extends GPUObjectBase {
4398
+ }
4399
+
4400
+ declare var GPURenderBundle: {
4401
+ prototype: GPURenderBundle;
4402
+ new(): GPURenderBundle;
4403
+ };
4404
+
4405
+ /**
4406
+ * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
4407
+ * Available only in secure contexts.
4408
+ *
4409
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
4410
+ */
4411
+ interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
4412
+ }
4413
+
4414
+ declare var GPURenderPipeline: {
4415
+ prototype: GPURenderPipeline;
4416
+ new(): GPURenderPipeline;
4417
+ };
4418
+
4419
+ /**
4420
+ * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
4421
+ * Available only in secure contexts.
4422
+ *
4423
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
4424
+ */
4425
+ interface GPUSampler extends GPUObjectBase {
4426
+ }
4427
+
4428
+ declare var GPUSampler: {
4429
+ prototype: GPUSampler;
4430
+ new(): GPUSampler;
4431
+ };
4432
+
4433
+ /**
4434
+ * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
4435
+ * Available only in secure contexts.
4436
+ *
4437
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
4438
+ */
4439
+ interface GPUSupportedFeatures {
4440
+ forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
4441
+ }
4442
+
4443
+ declare var GPUSupportedFeatures: {
4444
+ prototype: GPUSupportedFeatures;
4445
+ new(): GPUSupportedFeatures;
4446
+ };
4447
+
4448
+ /**
4449
+ * The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
4450
+ * Available only in secure contexts.
4451
+ *
4452
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
4453
+ */
4454
+ interface GPUSupportedLimits {
4455
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4456
+ readonly maxBindGroups: number;
4457
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4458
+ readonly maxBindGroupsPlusVertexBuffers: number;
4459
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4460
+ readonly maxBindingsPerBindGroup: number;
4461
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4462
+ readonly maxBufferSize: number;
4463
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4464
+ readonly maxColorAttachmentBytesPerSample: number;
4465
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4466
+ readonly maxColorAttachments: number;
4467
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4468
+ readonly maxComputeInvocationsPerWorkgroup: number;
4469
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4470
+ readonly maxComputeWorkgroupSizeX: number;
4471
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4472
+ readonly maxComputeWorkgroupSizeY: number;
4473
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4474
+ readonly maxComputeWorkgroupSizeZ: number;
4475
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4476
+ readonly maxComputeWorkgroupStorageSize: number;
4477
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4478
+ readonly maxComputeWorkgroupsPerDimension: number;
4479
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4480
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
4481
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4482
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
4483
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4484
+ readonly maxInterStageShaderVariables: number;
4485
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4486
+ readonly maxSampledTexturesPerShaderStage: number;
4487
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4488
+ readonly maxSamplersPerShaderStage: number;
4489
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4490
+ readonly maxStorageBufferBindingSize: number;
4491
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4492
+ readonly maxStorageBuffersPerShaderStage: number;
4493
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4494
+ readonly maxStorageTexturesPerShaderStage: number;
4495
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4496
+ readonly maxTextureArrayLayers: number;
4497
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4498
+ readonly maxTextureDimension1D: number;
4499
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4500
+ readonly maxTextureDimension2D: number;
4501
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4502
+ readonly maxTextureDimension3D: number;
4503
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4504
+ readonly maxUniformBufferBindingSize: number;
4505
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4506
+ readonly maxUniformBuffersPerShaderStage: number;
4507
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4508
+ readonly maxVertexAttributes: number;
4509
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4510
+ readonly maxVertexBufferArrayStride: number;
4511
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4512
+ readonly maxVertexBuffers: number;
4513
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4514
+ readonly minStorageBufferOffsetAlignment: number;
4515
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
4516
+ readonly minUniformBufferOffsetAlignment: number;
4517
+ }
4518
+
4519
+ declare var GPUSupportedLimits: {
4520
+ prototype: GPUSupportedLimits;
4521
+ new(): GPUSupportedLimits;
4522
+ };
4523
+
4524
+ /**
4525
+ * The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
4526
+ * Available only in secure contexts.
4527
+ *
4528
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
4529
+ */
4530
+ interface GPUTexture extends GPUObjectBase {
4531
+ /**
4532
+ * The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
4533
+ *
4534
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
4535
+ */
4536
+ readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
4537
+ /**
4538
+ * The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
4539
+ *
4540
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
4541
+ */
4542
+ readonly dimension: GPUTextureDimension;
4543
+ /**
4544
+ * The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
4545
+ *
4546
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
4547
+ */
4548
+ readonly format: GPUTextureFormat;
4549
+ /**
4550
+ * The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
4551
+ *
4552
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
4553
+ */
4554
+ readonly height: GPUIntegerCoordinateOut;
4555
+ /**
4556
+ * The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
4557
+ *
4558
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
4559
+ */
4560
+ readonly mipLevelCount: GPUIntegerCoordinateOut;
4561
+ /**
4562
+ * The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
4563
+ *
4564
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
4565
+ */
4566
+ readonly sampleCount: GPUSize32Out;
4567
+ /**
4568
+ * The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
4569
+ *
4570
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
4571
+ */
4572
+ readonly usage: GPUFlagsConstant;
4573
+ /**
4574
+ * The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
4575
+ *
4576
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
4577
+ */
4578
+ readonly width: GPUIntegerCoordinateOut;
4579
+ /**
4580
+ * The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
4581
+ *
4582
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
4583
+ */
4584
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
4585
+ /**
4586
+ * The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
4587
+ *
4588
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
4589
+ */
4590
+ destroy(): void;
4591
+ }
4592
+
4593
+ declare var GPUTexture: {
4594
+ prototype: GPUTexture;
4595
+ new(): GPUTexture;
4596
+ };
4597
+
4598
+ /**
4599
+ * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
4600
+ * Available only in secure contexts.
4601
+ *
4602
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
4603
+ */
4604
+ interface GPUTextureView extends GPUObjectBase {
4605
+ }
4606
+
4607
+ declare var GPUTextureView: {
4608
+ prototype: GPUTextureView;
4609
+ new(): GPUTextureView;
4610
+ };
4611
+
4612
+ /**
4613
+ * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors.
4614
+ * Available only in secure contexts.
4615
+ *
4616
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
4617
+ */
4618
+ interface GPUUncapturedErrorEvent extends Event {
4619
+ /**
4620
+ * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
4621
+ *
4622
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
4623
+ */
4624
+ readonly error: GPUError;
4625
+ }
4626
+
4627
+ declare var GPUUncapturedErrorEvent: {
4628
+ prototype: GPUUncapturedErrorEvent;
4629
+ new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
4630
+ };
4631
+
4632
+ /**
4633
+ * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
4634
+ * Available only in secure contexts.
4635
+ *
4636
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
4637
+ */
4638
+ interface GPUValidationError extends GPUError {
4639
+ }
4640
+
4641
+ declare var GPUValidationError: {
4642
+ prototype: GPUValidationError;
4643
+ new(message: string): GPUValidationError;
4644
+ };
4645
+
4224
4646
  interface GenericTransformStream {
4225
4647
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
4226
4648
  readonly readable: ReadableStream;
@@ -7375,6 +7797,7 @@ interface SubtleCrypto {
7375
7797
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
7376
7798
  */
7377
7799
  generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
7800
+ generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
7378
7801
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
7379
7802
  generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
7380
7803
  generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
@@ -8240,6 +8663,21 @@ interface WEBGL_multi_draw {
8240
8663
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
8241
8664
  }
8242
8665
 
8666
+ /**
8667
+ * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
8668
+ * Available only in secure contexts.
8669
+ *
8670
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
8671
+ */
8672
+ interface WGSLLanguageFeatures {
8673
+ forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
8674
+ }
8675
+
8676
+ declare var WGSLLanguageFeatures: {
8677
+ prototype: WGSLLanguageFeatures;
8678
+ new(): WGSLLanguageFeatures;
8679
+ };
8680
+
8243
8681
  /**
8244
8682
  * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
8245
8683
  *
@@ -11761,6 +12199,11 @@ type GLsizei = number;
11761
12199
  type GLsizeiptr = number;
11762
12200
  type GLuint = number;
11763
12201
  type GLuint64 = number;
12202
+ type GPUFlagsConstant = number;
12203
+ type GPUIntegerCoordinate = number;
12204
+ type GPUIntegerCoordinateOut = number;
12205
+ type GPUSize32Out = number;
12206
+ type GPUTextureUsageFlags = number;
11764
12207
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
11765
12208
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
11766
12209
  type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
@@ -11809,7 +12252,12 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
11809
12252
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
11810
12253
  type FontFaceSetLoadStatus = "loaded" | "loading";
11811
12254
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
12255
+ type GPUDeviceLostReason = "destroyed" | "unknown";
11812
12256
  type GPUPipelineErrorReason = "internal" | "validation";
12257
+ type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
12258
+ type GPUTextureDimension = "1d" | "2d" | "3d";
12259
+ 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";
12260
+ type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
11813
12261
  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";
11814
12262
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
11815
12263
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
@@ -11941,6 +12389,9 @@ interface FormData {
11941
12389
  values(): FormDataIterator<FormDataEntryValue>;
11942
12390
  }
11943
12391
 
12392
+ interface GPUSupportedFeatures extends ReadonlySet<string> {
12393
+ }
12394
+
11944
12395
  interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
11945
12396
  [Symbol.iterator](): HeadersIterator<T>;
11946
12397
  }
@@ -12002,6 +12453,7 @@ interface SubtleCrypto {
12002
12453
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
12003
12454
  */
12004
12455
  generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
12456
+ generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
12005
12457
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
12006
12458
  generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
12007
12459
  generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
@@ -12070,6 +12522,9 @@ interface WEBGL_multi_draw {
12070
12522
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
12071
12523
  }
12072
12524
 
12525
+ interface WGSLLanguageFeatures extends ReadonlySet<string> {
12526
+ }
12527
+
12073
12528
  interface WebGL2RenderingContextBase {
12074
12529
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
12075
12530
  clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.173",
3
+ "version": "0.0.175",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],