mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Fix socket.io.d.ts for wrong type in Namespace.connected
This commit is contained in:
1 parent
2272849a06
commit
070980d5f2
1 file changed
+1
-1
Vendored
+1
-1
@@ -44,7 +44,7 @@ declare module SocketIO {
|
||||
|
||||
interface Namespace extends NodeJS.EventEmitter {
|
||||
name: string;
|
||||
connected: { [id: number]: Socket };
|
||||
connected: { [id: string]: Socket };
|
||||
use(fn: Function): Namespace
|
||||
|
||||
on(event: 'connection', listener: (socket: Socket) => void): any;
|
||||
|
||||
Reference in new issue
Block a user