File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import * as eio from "engine.io-client" ;
22import { Socket , SocketOptions } from "./socket" ;
3- import * as Emitter from "component-emitter" ;
3+ import Emitter = require ( "component-emitter" ) ;
44import * as parser from "socket.io-parser" ;
55import { Decoder , Encoder } from "socket.io-parser" ;
66import { on } from "./on" ;
@@ -579,7 +579,7 @@ export class Manager extends Emitter {
579579 * @return {Socket }
580580 * @public
581581 */
582- public socket ( nsp : string , opts ?: SocketOptions ) : Socket {
582+ public socket ( nsp : string , opts ?: Partial < SocketOptions > ) : Socket {
583583 let socket = this . nsps [ nsp ] ;
584584 if ( ! socket ) {
585585 socket = new Socket ( this , nsp , opts ) ;
Original file line number Diff line number Diff line change 11import { Packet , PacketType } from "socket.io-parser" ;
2- import * as Emitter from "component-emitter" ;
2+ import Emitter = require ( "component-emitter" ) ;
33import { on } from "./on" ;
44import * as bind from "component-bind" ;
55import { Manager } from "./manager" ;
You can’t perform that action at this time.
0 commit comments