[node] fix parameter name of tls.connect() (#31494)

The callback parameter of `tls.connect(options[, callback])` is for the `secureConnect` event, not for the `secureConnection` event, and should therefore be named `secureConnectListener` instead of `secureConnectionListener`.
This commit is contained in:
Christian d'Heureuse
2018-12-19 10:11:12 -08:00
committed by Nathan Shively-Sanders
parent 34486e7112
commit 69ec048026
+1 -1
View File
@@ -6634,7 +6634,7 @@ declare module "tls" {
*/
function checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined;
function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
function connect(options: ConnectionOptions, secureConnectionListener?: () => void): TLSSocket;
function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;