From 417aa79b1a51bfe8913c5ef756c739887fb27511 Mon Sep 17 00:00:00 2001 From: wokim Date: Wed, 10 Dec 2014 01:14:55 +0900 Subject: [PATCH] Make 'opts' to optional parameter --- socket.io/socket.io.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/socket.io/socket.io.d.ts b/socket.io/socket.io.d.ts index b6aad32931..b1db7515fa 100644 --- a/socket.io/socket.io.d.ts +++ b/socket.io/socket.io.d.ts @@ -27,10 +27,10 @@ declare module SocketIO { adapter(v: any): Server; origins(v: string): Server; sockets: Namespace; - attach(srv: any, opts: any): Server; - attach(port: number, opts: any): Server; - listen(srv: any, opts: any): Server; - listen(port: number, opts: any): Server; + attach(srv: any, opts?: any): Server; + attach(port: number, opts?: any): Server; + listen(srv: any, opts?: any): Server; + listen(port: number, opts?: any): Server; bind(srv: any): Server; onconnection(socket: any): Server; of(nsp: string): Namespace;