chore: align some Web API type definitions to lib.dom.d.ts (#15219)

This commit is contained in:
ayame113 2022-07-20 19:30:41 +09:00 committed by GitHub
parent b8e1250500
commit 27a72a12b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 44 additions and 5 deletions

View file

@ -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;