mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
chore: align some Web API type definitions to lib.dom.d.ts (#15219)
This commit is contained in:
parent
b8e1250500
commit
27a72a12b7
7 changed files with 44 additions and 5 deletions
2
ext/websocket/lib.deno_websocket.d.ts
vendored
2
ext/websocket/lib.deno_websocket.d.ts
vendored
|
@ -40,7 +40,7 @@ interface WebSocketEventMap {
|
|||
* If you are looking to create a WebSocket server, please take a look at `Deno.upgradeWebSocket()`.
|
||||
*/
|
||||
declare class WebSocket extends EventTarget {
|
||||
constructor(url: string, protocols?: string | string[]);
|
||||
constructor(url: string | URL, protocols?: string | string[]);
|
||||
|
||||
static readonly CLOSED: number;
|
||||
static readonly CLOSING: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue