diff options
| author | Luca Casonato <lucacasonato@yahoo.com> | 2020-09-13 11:52:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-13 11:52:20 +0200 |
| commit | daa780e2cf2bf606f78c686ac1416786bf85d107 (patch) | |
| tree | 51b9517bb39d30943b610d58b1ea49233c0b1ac7 /cli/dts | |
| parent | 82d0f7ec84ccf8652441b5de620e85180ce55fc0 (diff) | |
fix(WebSocket): no panic on failed connect + handle promise rejection via error event (#7437)
Diffstat (limited to 'cli/dts')
| -rw-r--r-- | cli/dts/lib.deno.shared_globals.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/dts/lib.deno.shared_globals.d.ts b/cli/dts/lib.deno.shared_globals.d.ts index 8e97fe014..c9423b5f3 100644 --- a/cli/dts/lib.deno.shared_globals.d.ts +++ b/cli/dts/lib.deno.shared_globals.d.ts @@ -1489,7 +1489,7 @@ interface WebSocket extends EventTarget { */ readonly extensions: string; onclose: ((this: WebSocket, ev: CloseEvent) => any) | null; - onerror: ((this: WebSocket, ev: Event) => any) | null; + onerror: ((this: WebSocket, ev: Event | ErrorEvent) => any) | null; onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null; onopen: ((this: WebSocket, ev: Event) => any) | null; /** |
