mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Declare Socket.conn as any
SocketIO.Socket.conn is an EngineIO.Socket, not a SocketIO.Socket so use any rather declaring as the wrong type.
This commit is contained in:
Vendored
+1
-1
@@ -55,7 +55,7 @@ declare module SocketIO {
|
||||
interface Socket {
|
||||
rooms: string[];
|
||||
client: Client;
|
||||
conn: Socket;
|
||||
conn: any;
|
||||
request: any;
|
||||
id: string;
|
||||
emit(name: string, ...args: any[]): Socket;
|
||||
|
||||
Reference in New Issue
Block a user