diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-07-20 20:28:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 20:28:19 +0200 |
commit | d53936eb7d3fe4cda8e06f7310e4c8f12702b413 (patch) | |
tree | ad4b5cf09dee34e8618096c35e58b54c0312f2e1 /cli/dts/lib.deno.shared_globals.d.ts | |
parent | 6e350b2b7c7b027b31694875cdb423f494d1b423 (diff) |
Reland "feat: add "unhandledrejection" event support" (#15211)
Diffstat (limited to 'cli/dts/lib.deno.shared_globals.d.ts')
-rw-r--r-- | cli/dts/lib.deno.shared_globals.d.ts | 11 |
1 files changed, 11 insertions, 0 deletions
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<any>; + reason?: any; +} + +declare class PromiseRejectionEvent extends Event { + readonly promise: Promise<any>; + readonly reason: any; + constructor(type: string, eventInitDict?: PromiseRejectionEventInit); +} + interface AbstractWorkerEventMap { "error": ErrorEvent; } |