diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-04-09 04:46:53 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 20:46:53 +0200 |
commit | 03b84197a0ca181443ef06d870100b2157e1f1b8 (patch) | |
tree | bf052e96513fa2d862b35963749b528a4491b08e /cli/tsc/dts/lib.deno.unstable.d.ts | |
parent | 3c346c8ea6aa888475c19d512ddd4c247c00b1ea (diff) |
chore: update WPT (#23111)
Should fix some of the current issues with the `wpt_epoch` workflow.
See
https://github.com/denoland/deno/actions/runs/8460701853/job/23179358486
---------
Co-authored-by: crowlkats <crowlkats@toaxl.com>
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tsc/dts/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.deno.unstable.d.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 21d006fad..056d8e609 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -2227,6 +2227,26 @@ declare var WebSocketStream: { new (url: string, options?: WebSocketStreamOptions): WebSocketStream; }; +/** **UNSTABLE**: New API, yet to be vetted. + * + * @tags allow-net + * @category Web Sockets + */ +declare interface WebSocketError extends DOMException { + readonly closeCode: number; + readonly reason: string; +} + +/** **UNSTABLE**: New API, yet to be vetted. + * + * @tags allow-net + * @category Web Sockets + */ +declare var WebSocketError: { + readonly prototype: WebSocketError; + new (message?: string, init?: WebSocketCloseInfo): WebSocketError; +}; + // Adapted from `tc39/proposal-temporal`: https://github.com/tc39/proposal-temporal/blob/main/polyfill/index.d.ts /** |