From 06ccb6d41e1b89bff587a6dbac698c912d1c1090 Mon Sep 17 00:00:00 2001 From: Matt Ezell Date: Thu, 13 Oct 2022 03:47:47 -0500 Subject: chore: Added onbeforeunload to window type definition (#16251) --- cli/dts/lib.deno.window.d.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/dts') 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: -- cgit v1.2.3