diff --git a/index.d.ts b/index.d.ts index 9c25e34f..45ad4374 100644 --- a/index.d.ts +++ b/index.d.ts @@ -112,8 +112,8 @@ declare module 'mock-socket' { } const SocketIO: { - (url: string, protocol: string | string[]): SocketIOClient; - connect(url: string, protocol: string | string[]): SocketIOClient; + (url: string, protocol?: string | string[]): SocketIOClient; + connect(url: string, protocol?: string | string[]): SocketIOClient; } interface CloseOptions {