mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-17 13:00:35 +08:00
Merge pull request #4229 from elisee/patch-3
Add overload for http.Server.listen
This commit is contained in:
commit
fc41ac90ec
1 file changed
+1
Vendored
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user