diff options
Diffstat (limited to 'cli/dts/lib.deno.worker.d.ts')
-rw-r--r-- | cli/dts/lib.deno.worker.d.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.worker.d.ts b/cli/dts/lib.deno.worker.d.ts index f613f2800..7be9211a4 100644 --- a/cli/dts/lib.deno.worker.d.ts +++ b/cli/dts/lib.deno.worker.d.ts @@ -8,12 +8,16 @@ interface WorkerGlobalScopeEventMap { "error": ErrorEvent; + "unhandledrejection": PromiseRejectionEvent; } declare class WorkerGlobalScope extends EventTarget { readonly location: WorkerLocation; readonly navigator: WorkerNavigator; onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null; + onunhandledrejection: + | ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) + | null; readonly self: WorkerGlobalScope & typeof globalThis; @@ -117,6 +121,9 @@ declare var navigator: WorkerNavigator; declare var onerror: | ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null; +declare var onunhandledrejection: + | ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) + | null; declare var self: WorkerGlobalScope & typeof globalThis; declare function addEventListener< K extends keyof DedicatedWorkerGlobalScopeEventMap, |