summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.worker.d.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-13 22:18:31 +0200
committerGitHub <noreply@github.com>2020-04-13 22:18:31 +0200
commit2585b72c9bdd5ca36b6b43cf5b5609419081c7a8 (patch)
tree265f6060e6ac1351f5a68edec625fc5acca02009 /cli/js/lib.deno.worker.d.ts
parent8397cd52a5ec915a0b5e85d337cfcc38f4aaa63f (diff)
feat: implement EventTarget for worker scope (#4737)
Diffstat (limited to 'cli/js/lib.deno.worker.d.ts')
-rw-r--r--cli/js/lib.deno.worker.d.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/js/lib.deno.worker.d.ts b/cli/js/lib.deno.worker.d.ts
index e1db7e691..a1e83af48 100644
--- a/cli/js/lib.deno.worker.d.ts
+++ b/cli/js/lib.deno.worker.d.ts
@@ -8,7 +8,8 @@
declare interface DedicatedWorkerGlobalScope {
self: DedicatedWorkerGlobalScope & typeof globalThis;
- onmessage: (e: { data: any }) => void;
+ onmessage: (e: MessageEvent) => void;
+ onmessageerror: (e: MessageEvent) => void;
location: Location;
onerror: undefined | typeof onerror;
name: typeof __workerMain.name;