Add overload for http.Server.listen

The backlog parameter should be optional while still accepting the port parameter.
This commit is contained in:
Elisée
2015-04-30 01:14:30 +02:00
parent a61199a468
commit bbb3bc0690

1
node/node.d.ts vendored
View File

@@ -340,6 +340,7 @@ declare module "http" {
export interface Server extends events.EventEmitter {
listen(port: number, hostname?: string, backlog?: number, callback?: Function): Server;
listen(port: number, hostname?: string, callback?: Function): Server;
listen(path: string, callback?: Function): Server;
listen(handle: any, listeningListener?: Function): Server;
close(cb?: any): Server;