Skip to content

Commit

Permalink
refactor: additional typings
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Oct 17, 2020
1 parent 7ddad2c commit f3cbe98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/manager.ts
@@ -1,6 +1,6 @@
import * as eio from "engine.io-client";
import { Socket, SocketOptions } from "./socket";
import * as Emitter from "component-emitter";
import Emitter = require("component-emitter");
import * as parser from "socket.io-parser";
import { Decoder, Encoder } from "socket.io-parser";
import { on } from "./on";
Expand Down Expand Up @@ -579,7 +579,7 @@ export class Manager extends Emitter {
* @return {Socket}
* @public
*/
public socket(nsp: string, opts?: SocketOptions): Socket {
public socket(nsp: string, opts?: Partial<SocketOptions>): Socket {
let socket = this.nsps[nsp];
if (!socket) {
socket = new Socket(this, nsp, opts);
Expand Down
2 changes: 1 addition & 1 deletion lib/socket.ts
@@ -1,5 +1,5 @@
import { Packet, PacketType } from "socket.io-parser";
import * as Emitter from "component-emitter";
import Emitter = require("component-emitter");
import { on } from "./on";
import * as bind from "component-bind";
import { Manager } from "./manager";
Expand Down

0 comments on commit f3cbe98

Please sign in to comment.