@types/sharedworker 0.0.214 → 0.0.216
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 +60 -2
- package/package.json +1 -1
- package/ts5.5/index.d.ts +60 -2
- package/ts5.6/index.d.ts +60 -2
- package/ts5.9/index.d.ts +60 -2
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.
|
|
31
|
+
You can read what changed in version 0.0.216 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.216.
|
package/index.d.ts
CHANGED
|
@@ -219,6 +219,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
219
219
|
fontfaces?: FontFace[];
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
223
|
+
entries: GPUBindGroupEntry[];
|
|
224
|
+
layout: GPUBindGroupLayout;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface GPUBindGroupEntry {
|
|
228
|
+
binding: GPUIndex32;
|
|
229
|
+
resource: GPUBindingResource;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
interface GPUBufferBinding {
|
|
233
|
+
buffer: GPUBuffer;
|
|
234
|
+
offset?: GPUSize64;
|
|
235
|
+
size?: GPUSize64;
|
|
236
|
+
}
|
|
237
|
+
|
|
222
238
|
interface GPUCanvasConfiguration {
|
|
223
239
|
alphaMode?: GPUCanvasAlphaMode;
|
|
224
240
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -270,6 +286,10 @@ interface GPUExtent3DDict {
|
|
|
270
286
|
width: GPUIntegerCoordinate;
|
|
271
287
|
}
|
|
272
288
|
|
|
289
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
290
|
+
colorSpace?: PredefinedColorSpace;
|
|
291
|
+
}
|
|
292
|
+
|
|
273
293
|
interface GPUObjectDescriptorBase {
|
|
274
294
|
label?: string;
|
|
275
295
|
}
|
|
@@ -4447,6 +4467,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4447
4467
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
4448
4468
|
*/
|
|
4449
4469
|
readonly queue: GPUQueue;
|
|
4470
|
+
/**
|
|
4471
|
+
* 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.
|
|
4472
|
+
*
|
|
4473
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4474
|
+
*/
|
|
4475
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4476
|
+
/**
|
|
4477
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4478
|
+
*
|
|
4479
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
4480
|
+
*/
|
|
4481
|
+
destroy(): void;
|
|
4482
|
+
/**
|
|
4483
|
+
* 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.
|
|
4484
|
+
*
|
|
4485
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
4486
|
+
*/
|
|
4487
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
4488
|
+
/**
|
|
4489
|
+
* 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.
|
|
4490
|
+
*
|
|
4491
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
4492
|
+
*/
|
|
4493
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
4494
|
+
/**
|
|
4495
|
+
* 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.
|
|
4496
|
+
*
|
|
4497
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
4498
|
+
*/
|
|
4499
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
4450
4500
|
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4451
4501
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4452
4502
|
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -7073,6 +7123,12 @@ declare var PushManager: {
|
|
|
7073
7123
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
7074
7124
|
};
|
|
7075
7125
|
|
|
7126
|
+
/** Available only in secure contexts. */
|
|
7127
|
+
interface PushManagerAttribute {
|
|
7128
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
7129
|
+
readonly pushManager: PushManager;
|
|
7130
|
+
}
|
|
7131
|
+
|
|
7076
7132
|
/**
|
|
7077
7133
|
* 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.
|
|
7078
7134
|
* Available only in secure contexts.
|
|
@@ -7806,7 +7862,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7806
7862
|
*
|
|
7807
7863
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7808
7864
|
*/
|
|
7809
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
7865
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7810
7866
|
/**
|
|
7811
7867
|
* 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.
|
|
7812
7868
|
*
|
|
@@ -12005,7 +12061,7 @@ declare namespace WebAssembly {
|
|
|
12005
12061
|
*
|
|
12006
12062
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12007
12063
|
*/
|
|
12008
|
-
getArg(index: number): any;
|
|
12064
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12009
12065
|
/**
|
|
12010
12066
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12011
12067
|
*
|
|
@@ -12598,6 +12654,7 @@ type GLsizei = number;
|
|
|
12598
12654
|
type GLsizeiptr = number;
|
|
12599
12655
|
type GLuint = number;
|
|
12600
12656
|
type GLuint64 = number;
|
|
12657
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12601
12658
|
type GPUBufferDynamicOffset = number;
|
|
12602
12659
|
type GPUColor = number[] | GPUColorDict;
|
|
12603
12660
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -12665,6 +12722,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
|
12665
12722
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
12666
12723
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12667
12724
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12725
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
12668
12726
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
12669
12727
|
type GPULoadOp = "clear" | "load";
|
|
12670
12728
|
type GPUPipelineErrorReason = "internal" | "validation";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -216,6 +216,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
216
216
|
fontfaces?: FontFace[];
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
220
|
+
entries: GPUBindGroupEntry[];
|
|
221
|
+
layout: GPUBindGroupLayout;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface GPUBindGroupEntry {
|
|
225
|
+
binding: GPUIndex32;
|
|
226
|
+
resource: GPUBindingResource;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
interface GPUBufferBinding {
|
|
230
|
+
buffer: GPUBuffer;
|
|
231
|
+
offset?: GPUSize64;
|
|
232
|
+
size?: GPUSize64;
|
|
233
|
+
}
|
|
234
|
+
|
|
219
235
|
interface GPUCanvasConfiguration {
|
|
220
236
|
alphaMode?: GPUCanvasAlphaMode;
|
|
221
237
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -267,6 +283,10 @@ interface GPUExtent3DDict {
|
|
|
267
283
|
width: GPUIntegerCoordinate;
|
|
268
284
|
}
|
|
269
285
|
|
|
286
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
287
|
+
colorSpace?: PredefinedColorSpace;
|
|
288
|
+
}
|
|
289
|
+
|
|
270
290
|
interface GPUObjectDescriptorBase {
|
|
271
291
|
label?: string;
|
|
272
292
|
}
|
|
@@ -4444,6 +4464,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4444
4464
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
4445
4465
|
*/
|
|
4446
4466
|
readonly queue: GPUQueue;
|
|
4467
|
+
/**
|
|
4468
|
+
* 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.
|
|
4469
|
+
*
|
|
4470
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4471
|
+
*/
|
|
4472
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4473
|
+
/**
|
|
4474
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4475
|
+
*
|
|
4476
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
4477
|
+
*/
|
|
4478
|
+
destroy(): void;
|
|
4479
|
+
/**
|
|
4480
|
+
* 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.
|
|
4481
|
+
*
|
|
4482
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
4483
|
+
*/
|
|
4484
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
4485
|
+
/**
|
|
4486
|
+
* 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.
|
|
4487
|
+
*
|
|
4488
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
4489
|
+
*/
|
|
4490
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
4491
|
+
/**
|
|
4492
|
+
* 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.
|
|
4493
|
+
*
|
|
4494
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
4495
|
+
*/
|
|
4496
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
4447
4497
|
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4448
4498
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4449
4499
|
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -7070,6 +7120,12 @@ declare var PushManager: {
|
|
|
7070
7120
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
7071
7121
|
};
|
|
7072
7122
|
|
|
7123
|
+
/** Available only in secure contexts. */
|
|
7124
|
+
interface PushManagerAttribute {
|
|
7125
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
7126
|
+
readonly pushManager: PushManager;
|
|
7127
|
+
}
|
|
7128
|
+
|
|
7073
7129
|
/**
|
|
7074
7130
|
* 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.
|
|
7075
7131
|
* Available only in secure contexts.
|
|
@@ -7803,7 +7859,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7803
7859
|
*
|
|
7804
7860
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7805
7861
|
*/
|
|
7806
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
7862
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7807
7863
|
/**
|
|
7808
7864
|
* 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.
|
|
7809
7865
|
*
|
|
@@ -12002,7 +12058,7 @@ declare namespace WebAssembly {
|
|
|
12002
12058
|
*
|
|
12003
12059
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12004
12060
|
*/
|
|
12005
|
-
getArg(index: number): any;
|
|
12061
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12006
12062
|
/**
|
|
12007
12063
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12008
12064
|
*
|
|
@@ -12595,6 +12651,7 @@ type GLsizei = number;
|
|
|
12595
12651
|
type GLsizeiptr = number;
|
|
12596
12652
|
type GLuint = number;
|
|
12597
12653
|
type GLuint64 = number;
|
|
12654
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12598
12655
|
type GPUBufferDynamicOffset = number;
|
|
12599
12656
|
type GPUColor = number[] | GPUColorDict;
|
|
12600
12657
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -12662,6 +12719,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
|
12662
12719
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
12663
12720
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12664
12721
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12722
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
12665
12723
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
12666
12724
|
type GPULoadOp = "clear" | "load";
|
|
12667
12725
|
type GPUPipelineErrorReason = "internal" | "validation";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -216,6 +216,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
216
216
|
fontfaces?: FontFace[];
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
220
|
+
entries: GPUBindGroupEntry[];
|
|
221
|
+
layout: GPUBindGroupLayout;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface GPUBindGroupEntry {
|
|
225
|
+
binding: GPUIndex32;
|
|
226
|
+
resource: GPUBindingResource;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
interface GPUBufferBinding {
|
|
230
|
+
buffer: GPUBuffer;
|
|
231
|
+
offset?: GPUSize64;
|
|
232
|
+
size?: GPUSize64;
|
|
233
|
+
}
|
|
234
|
+
|
|
219
235
|
interface GPUCanvasConfiguration {
|
|
220
236
|
alphaMode?: GPUCanvasAlphaMode;
|
|
221
237
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -267,6 +283,10 @@ interface GPUExtent3DDict {
|
|
|
267
283
|
width: GPUIntegerCoordinate;
|
|
268
284
|
}
|
|
269
285
|
|
|
286
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
287
|
+
colorSpace?: PredefinedColorSpace;
|
|
288
|
+
}
|
|
289
|
+
|
|
270
290
|
interface GPUObjectDescriptorBase {
|
|
271
291
|
label?: string;
|
|
272
292
|
}
|
|
@@ -4444,6 +4464,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4444
4464
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
4445
4465
|
*/
|
|
4446
4466
|
readonly queue: GPUQueue;
|
|
4467
|
+
/**
|
|
4468
|
+
* 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.
|
|
4469
|
+
*
|
|
4470
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4471
|
+
*/
|
|
4472
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4473
|
+
/**
|
|
4474
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4475
|
+
*
|
|
4476
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
4477
|
+
*/
|
|
4478
|
+
destroy(): void;
|
|
4479
|
+
/**
|
|
4480
|
+
* 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.
|
|
4481
|
+
*
|
|
4482
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
4483
|
+
*/
|
|
4484
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
4485
|
+
/**
|
|
4486
|
+
* 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.
|
|
4487
|
+
*
|
|
4488
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
4489
|
+
*/
|
|
4490
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
4491
|
+
/**
|
|
4492
|
+
* 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.
|
|
4493
|
+
*
|
|
4494
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
4495
|
+
*/
|
|
4496
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
4447
4497
|
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4448
4498
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4449
4499
|
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -7070,6 +7120,12 @@ declare var PushManager: {
|
|
|
7070
7120
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
7071
7121
|
};
|
|
7072
7122
|
|
|
7123
|
+
/** Available only in secure contexts. */
|
|
7124
|
+
interface PushManagerAttribute {
|
|
7125
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
7126
|
+
readonly pushManager: PushManager;
|
|
7127
|
+
}
|
|
7128
|
+
|
|
7073
7129
|
/**
|
|
7074
7130
|
* 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.
|
|
7075
7131
|
* Available only in secure contexts.
|
|
@@ -7803,7 +7859,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7803
7859
|
*
|
|
7804
7860
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7805
7861
|
*/
|
|
7806
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
7862
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7807
7863
|
/**
|
|
7808
7864
|
* 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.
|
|
7809
7865
|
*
|
|
@@ -12002,7 +12058,7 @@ declare namespace WebAssembly {
|
|
|
12002
12058
|
*
|
|
12003
12059
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12004
12060
|
*/
|
|
12005
|
-
getArg(index: number): any;
|
|
12061
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12006
12062
|
/**
|
|
12007
12063
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12008
12064
|
*
|
|
@@ -12595,6 +12651,7 @@ type GLsizei = number;
|
|
|
12595
12651
|
type GLsizeiptr = number;
|
|
12596
12652
|
type GLuint = number;
|
|
12597
12653
|
type GLuint64 = number;
|
|
12654
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12598
12655
|
type GPUBufferDynamicOffset = number;
|
|
12599
12656
|
type GPUColor = number[] | GPUColorDict;
|
|
12600
12657
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -12662,6 +12719,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
|
12662
12719
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
12663
12720
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12664
12721
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12722
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
12665
12723
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
12666
12724
|
type GPULoadOp = "clear" | "load";
|
|
12667
12725
|
type GPUPipelineErrorReason = "internal" | "validation";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -216,6 +216,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
216
216
|
fontfaces?: FontFace[];
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
220
|
+
entries: GPUBindGroupEntry[];
|
|
221
|
+
layout: GPUBindGroupLayout;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface GPUBindGroupEntry {
|
|
225
|
+
binding: GPUIndex32;
|
|
226
|
+
resource: GPUBindingResource;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
interface GPUBufferBinding {
|
|
230
|
+
buffer: GPUBuffer;
|
|
231
|
+
offset?: GPUSize64;
|
|
232
|
+
size?: GPUSize64;
|
|
233
|
+
}
|
|
234
|
+
|
|
219
235
|
interface GPUCanvasConfiguration {
|
|
220
236
|
alphaMode?: GPUCanvasAlphaMode;
|
|
221
237
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -267,6 +283,10 @@ interface GPUExtent3DDict {
|
|
|
267
283
|
width: GPUIntegerCoordinate;
|
|
268
284
|
}
|
|
269
285
|
|
|
286
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
287
|
+
colorSpace?: PredefinedColorSpace;
|
|
288
|
+
}
|
|
289
|
+
|
|
270
290
|
interface GPUObjectDescriptorBase {
|
|
271
291
|
label?: string;
|
|
272
292
|
}
|
|
@@ -4444,6 +4464,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4444
4464
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
4445
4465
|
*/
|
|
4446
4466
|
readonly queue: GPUQueue;
|
|
4467
|
+
/**
|
|
4468
|
+
* 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.
|
|
4469
|
+
*
|
|
4470
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4471
|
+
*/
|
|
4472
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4473
|
+
/**
|
|
4474
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4475
|
+
*
|
|
4476
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
4477
|
+
*/
|
|
4478
|
+
destroy(): void;
|
|
4479
|
+
/**
|
|
4480
|
+
* 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.
|
|
4481
|
+
*
|
|
4482
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
4483
|
+
*/
|
|
4484
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
4485
|
+
/**
|
|
4486
|
+
* 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.
|
|
4487
|
+
*
|
|
4488
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
4489
|
+
*/
|
|
4490
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
4491
|
+
/**
|
|
4492
|
+
* 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.
|
|
4493
|
+
*
|
|
4494
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
4495
|
+
*/
|
|
4496
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
4447
4497
|
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4448
4498
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4449
4499
|
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -7070,6 +7120,12 @@ declare var PushManager: {
|
|
|
7070
7120
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
7071
7121
|
};
|
|
7072
7122
|
|
|
7123
|
+
/** Available only in secure contexts. */
|
|
7124
|
+
interface PushManagerAttribute {
|
|
7125
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
7126
|
+
readonly pushManager: PushManager;
|
|
7127
|
+
}
|
|
7128
|
+
|
|
7073
7129
|
/**
|
|
7074
7130
|
* 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.
|
|
7075
7131
|
* Available only in secure contexts.
|
|
@@ -7803,7 +7859,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7803
7859
|
*
|
|
7804
7860
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7805
7861
|
*/
|
|
7806
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
7862
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7807
7863
|
/**
|
|
7808
7864
|
* 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.
|
|
7809
7865
|
*
|
|
@@ -12002,7 +12058,7 @@ declare namespace WebAssembly {
|
|
|
12002
12058
|
*
|
|
12003
12059
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12004
12060
|
*/
|
|
12005
|
-
getArg(index: number): any;
|
|
12061
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12006
12062
|
/**
|
|
12007
12063
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12008
12064
|
*
|
|
@@ -12595,6 +12651,7 @@ type GLsizei = number;
|
|
|
12595
12651
|
type GLsizeiptr = number;
|
|
12596
12652
|
type GLuint = number;
|
|
12597
12653
|
type GLuint64 = number;
|
|
12654
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12598
12655
|
type GPUBufferDynamicOffset = number;
|
|
12599
12656
|
type GPUColor = number[] | GPUColorDict;
|
|
12600
12657
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -12662,6 +12719,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
|
12662
12719
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
12663
12720
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12664
12721
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12722
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
12665
12723
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
12666
12724
|
type GPULoadOp = "clear" | "load";
|
|
12667
12725
|
type GPUPipelineErrorReason = "internal" | "validation";
|