From 40fb9390125b912f9d12ee02f952ef4c4e19710b Mon Sep 17 00:00:00 2001 From: Atrue Date: Tue, 25 Jan 2022 17:20:57 +0300 Subject: [PATCH] fix SocketIO types --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {