slightly edit types

This commit is contained in:
Toshit Chawda 2024-07-07 15:16:58 -07:00
parent fb8fe1d306
commit b4c7ac361b
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D

View file

@ -135,9 +135,9 @@ export class BareClient {
createWebSocket(
remote: string | URL,
protocols: string | string[] | undefined = [],
webSocketImpl: WebSocketImpl,
requestHeaders: BareHeaders,
arrayBufferImpl: typeof ArrayBuffer,
webSocketImpl?: WebSocketImpl,
requestHeaders?: BareHeaders,
arrayBufferImpl?: typeof ArrayBuffer,
): WebSocket {
try {
remote = new URL(remote);