From d53936eb7d3fe4cda8e06f7310e4c8f12702b413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 20 Jul 2022 20:28:19 +0200 Subject: Reland "feat: add "unhandledrejection" event support" (#15211) --- cli/dts/lib.deno.shared_globals.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cli/dts/lib.deno.shared_globals.d.ts') diff --git a/cli/dts/lib.deno.shared_globals.d.ts b/cli/dts/lib.deno.shared_globals.d.ts index fc40bb54e..abf5e41fb 100644 --- a/cli/dts/lib.deno.shared_globals.d.ts +++ b/cli/dts/lib.deno.shared_globals.d.ts @@ -400,6 +400,17 @@ declare class ErrorEvent extends Event { constructor(type: string, eventInitDict?: ErrorEventInit); } +interface PromiseRejectionEventInit extends EventInit { + promise: Promise; + reason?: any; +} + +declare class PromiseRejectionEvent extends Event { + readonly promise: Promise; + readonly reason: any; + constructor(type: string, eventInitDict?: PromiseRejectionEventInit); +} + interface AbstractWorkerEventMap { "error": ErrorEvent; } -- cgit v1.2.3