diff --git a/dist/index.d.ts b/dist/index.d.ts index e91d0986..8756ec0e 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -2447,6 +2447,11 @@ declare var GPUComputePipeline: { new (): never; }; +/** @internal */ +interface __GPUDeviceEventMap { + uncapturederror: GPUUncapturedErrorEvent; +} + interface GPUDevice extends EventTarget, GPUObjectBase { @@ -2631,6 +2636,45 @@ interface GPUDevice ev: GPUUncapturedErrorEvent ) => any) | null; + + addEventListener< + K extends keyof __GPUDeviceEventMap + >( + type: K, + listener: ( + this: GPUDevice, + ev: __GPUDeviceEventMap[K] + ) => any, + options?: + | boolean + | AddEventListenerOptions + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: + | boolean + | AddEventListenerOptions + ): void; + removeEventListener< + K extends keyof __GPUDeviceEventMap + >( + type: K, + listener: ( + this: GPUDevice, + ev: __GPUDeviceEventMap[K] + ) => any, + options?: + | boolean + | EventListenerOptions + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: + | boolean + | EventListenerOptions + ): void; } declare var GPUDevice: {