summaryrefslogtreecommitdiff
path: root/cli/js/globals.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-03-05 08:36:13 -0500
committerGitHub <noreply@github.com>2020-03-05 08:36:13 -0500
commitc850b258b4e2487b0456a95cd6b65c169ffb9de2 (patch)
treed631f6995c048b0c7cddb600d4f33297922ba5b1 /cli/js/globals.ts
parent54a1688868810af0ef16f5c186dfb839f2fce23f (diff)
Support async function and EventListenerObject as listeners (#4240)
Diffstat (limited to 'cli/js/globals.ts')
-rw-r--r--cli/js/globals.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/globals.ts b/cli/js/globals.ts
index fd2082e40..0e3ae8fd8 100644
--- a/cli/js/globals.ts
+++ b/cli/js/globals.ts
@@ -104,7 +104,7 @@ declare global {
/* eslint-disable no-var */
var addEventListener: (
type: string,
- callback: (event: domTypes.Event) => void | null,
+ callback: domTypes.EventListenerOrEventListenerObject | null,
options?: boolean | domTypes.AddEventListenerOptions | undefined
) => void;
var queueMicrotask: (callback: () => void) => void;