mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Add constructor signature for tls.TLSSocket
This commit is contained in:
4
node/node.d.ts
vendored
4
node/node.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user