Add constructor signature for tls.TLSSocket

This commit is contained in:
nixar
2016-10-14 16:33:44 +02:00
parent bf5a2b9667
commit 0935f94260

4
node/node.d.ts vendored
View File

@@ -2642,6 +2642,10 @@ declare module "tls" {
}
export class TLSSocket extends stream.Duplex {
/**
* Construct a new tls.TLSSocket object from an existing TCP socket.
*/
constructor(socket:net.Socket, options?: ConnectionOptions);
/**
* Returns the bound address, the address family name and port of the underlying socket as reported by
* the operating system.