Skip to content

Commit

Permalink
Revert "fix definitions of net$Serverver and tls$Server"
Browse files Browse the repository at this point in the history
This reverts commit 359eea3.
  • Loading branch information
bradennapier committed Nov 16, 2018
1 parent f28eab0 commit fd6bfa9
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -1379,15 +1379,8 @@ declare class net$Socket extends stream$Duplex {

declare class net$Server extends events$EventEmitter {
listen(port?: number, hostname?: string, backlog?: number, callback?: Function): net$Server;
listen(port?: number, hostname?: string, callback?: Function): net$Server;
listen(port?: number, backlog?: number, callback?: Function): net$Server;
listen(port?: number, callback?: Function): net$Server;
listen(path: string, backlog?: number, callback?: Function): net$Server;
listen(path: string, callback?: Function): net$Server;
listen(options: net$ListenOptions, callback?: Function): net$Server;
listen(handle: Object, backlog?: number, callback?: Function): net$Server;
listen(handle: Object, callback?: Function): net$Server;

listening: boolean;
close(callback?: Function): net$Server;
address(): net$Socket$address;
Expand Down Expand Up @@ -1735,16 +1728,6 @@ type tls$connectOptions = {
requestOCSP?: boolean,
};

type net$ListenOptions = {
port?: number;
host?: string;
backlog?: number;
path?: string;
exclusive?: boolean;
readableAll?: boolean;
writableAll?: boolean;
}

declare class tls$TLSSocket extends net$Socket {
constructor(socket: net$Socket, options?: Object): void;
authorized: boolean;
Expand All @@ -1761,15 +1744,8 @@ declare class tls$TLSSocket extends net$Socket {

declare class tls$Server extends net$Server {
listen(port?: number, hostname?: string, backlog?: number, callback?: Function): tls$Server;
listen(port?: number, hostname?: string, callback?: Function): tls$Server;
listen(port?: number, backlog?: number, callback?: Function): tls$Server;
listen(port?: number, callback?: Function): tls$Server;
listen(path: string, backlog?: number, callback?: Function): tls$Server;
listen(path: string, callback?: Function): tls$Server;
listen(options: net$ListenOptions, callback?: Function): tls$Server;
listen(handle: Object, backlog?: number, callback?: Function): tls$Server;
listen(handle: Object, callback?: Function): tls$Server;

close(callback?: Function): tls$Server;
addContext(hostname: string, context: Object): void;
getTicketKeys(): Buffer;
Expand Down

0 comments on commit fd6bfa9

Please sign in to comment.