mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
[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:
committed by
Nathan Shively-Sanders
parent
34486e7112
commit
69ec048026
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user