summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.window.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts/lib.deno.window.d.ts')
-rw-r--r--cli/dts/lib.deno.window.d.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.window.d.ts b/cli/dts/lib.deno.window.d.ts
index 1600b0eac..1dbfb0493 100644
--- a/cli/dts/lib.deno.window.d.ts
+++ b/cli/dts/lib.deno.window.d.ts
@@ -9,6 +9,7 @@
interface WindowEventMap {
"error": ErrorEvent;
+ "unhandledrejection": PromiseRejectionEvent;
}
declare class Window extends EventTarget {
@@ -18,6 +19,9 @@ declare class Window extends EventTarget {
onerror: ((this: Window, ev: ErrorEvent) => any) | null;
onload: ((this: Window, ev: Event) => any) | null;
onunload: ((this: Window, ev: Event) => any) | null;
+ onunhandledrejection:
+ | ((this: Window, ev: PromiseRejectionEvent) => any)
+ | null;
close: () => void;
readonly closed: boolean;
alert: (message?: string) => void;
@@ -64,6 +68,9 @@ declare var self: Window & typeof globalThis;
declare var onerror: ((this: Window, ev: ErrorEvent) => any) | null;
declare var onload: ((this: Window, ev: Event) => any) | null;
declare var onunload: ((this: Window, ev: Event) => any) | null;
+declare var onunhandledrejection:
+ | ((this: Window, ev: PromiseRejectionEvent) => any)
+ | null;
declare var localStorage: Storage;
declare var sessionStorage: Storage;