summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.window.d.ts
diff options
context:
space:
mode:
authorMatt Ezell <ezell.matt@gmail.com>2022-10-13 03:47:47 -0500
committerGitHub <noreply@github.com>2022-10-13 10:47:47 +0200
commit06ccb6d41e1b89bff587a6dbac698c912d1c1090 (patch)
treeb886344c2212aefdf84594829c43a3a0d565fdce /cli/dts/lib.deno.window.d.ts
parentba3d0da6ab3ff5f7e0a09b132b6ae113a8c8b782 (diff)
chore: Added onbeforeunload to window type definition (#16251)
Diffstat (limited to 'cli/dts/lib.deno.window.d.ts')
-rw-r--r--cli/dts/lib.deno.window.d.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.window.d.ts b/cli/dts/lib.deno.window.d.ts
index 9515f5b23..77204fcbd 100644
--- a/cli/dts/lib.deno.window.d.ts
+++ b/cli/dts/lib.deno.window.d.ts
@@ -21,6 +21,7 @@ declare class Window extends EventTarget {
readonly self: Window & typeof globalThis;
onerror: ((this: Window, ev: ErrorEvent) => any) | null;
onload: ((this: Window, ev: Event) => any) | null;
+ onbeforeunload: ((this: Window, ev: Event) => any) | null;
onunload: ((this: Window, ev: Event) => any) | null;
onunhandledrejection:
| ((this: Window, ev: PromiseRejectionEvent) => any)
@@ -76,6 +77,8 @@ declare var onerror: ((this: Window, ev: ErrorEvent) => any) | null;
/** @category DOM Events */
declare var onload: ((this: Window, ev: Event) => any) | null;
/** @category DOM Events */
+declare var onbeforeunload: ((this: Window, ev: Event) => any) | null;
+/** @category DOM Events */
declare var onunload: ((this: Window, ev: Event) => any) | null;
/** @category Observability */
declare var onunhandledrejection: