mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-02 12:00:51 +08:00
Merge pull request #4229 from elisee/patch-3
Add overload for http.Server.listen
This commit is contained in:
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