From 03b84197a0ca181443ef06d870100b2157e1f1b8 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Tue, 9 Apr 2024 04:46:53 +1000 Subject: chore: update WPT (#23111) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Co-authored-by: Bartek IwaƄczuk --- cli/tsc/dts/lib.deno.unstable.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'cli/tsc') 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 /** -- cgit v1.2.3