diff --git a/dist/main.d.ts b/dist/main.d.ts new file mode 100644 index 0000000..1085975 --- /dev/null +++ b/dist/main.d.ts @@ -0,0 +1,16 @@ +import './index.d.ts'; + +declare global { + +interface GPUDeviceEventMap { + "uncapturederror": GPUUncapturedErrorEvent; +} + +interface GPUDevice { + addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +} \ No newline at end of file diff --git a/package.json b/package.json index 2d66260..2059ea8 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "bugs": "https://github.com/gpuweb/types/issues", "version": "0.1.53", "main": "", - "types": "dist/index.d.ts", + "types": "dist/main.d.ts", "license": "BSD-3-Clause", "files": [ "dist/**/*"