From 1c110fcbef3ebd4f12a2bdb1b933faa4b7adf786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommi=20Palom=C3=A4ki?= Date: Tue, 9 Dec 2014 11:08:10 +0000 Subject: [PATCH] SocketIOClient.Socket.off() arguments are optional --- socket.io-client/socket.io-client.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socket.io-client/socket.io-client.d.ts b/socket.io-client/socket.io-client.d.ts index a3882bbd7a..205fb9e9ba 100644 --- a/socket.io-client/socket.io-client.d.ts +++ b/socket.io-client/socket.io-client.d.ts @@ -23,7 +23,7 @@ declare module SocketIOClient { interface Socket { on(event: string, fn: Function): Socket; once(event: string, fn: Function): Socket; - off(event: string, fn: Function): Socket; + off(event?: string, fn?: Function): Socket; emit(event: string, ...args: any[]): Socket; listeners(event: string): Function[]; hasListeners(event: string): boolean;