From cf9c4f0031a46b58989a984af0528a2005547e2d Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 26 Oct 2021 22:27:47 +0200 Subject: feat(ext/net): add TlsConn.handshake() (#12467) A `handshake()` method was added that returns when the TLS handshake is complete. The `TlsListener` and `TlsConn` interfaces were added to accomodate this new method. Closes: #11759. --- cli/dts/lib.deno.unstable.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/dts/lib.deno.unstable.d.ts') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index a84883574..5a570d005 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1091,7 +1091,7 @@ declare namespace Deno { * * Requires `allow-net` permission. */ - export function connectTls(options: ConnectTlsOptions): Promise; + export function connectTls(options: ConnectTlsOptions): Promise; export interface StartTlsOptions { /** A literal IP address or host name that can be resolved to an IP address. @@ -1130,7 +1130,7 @@ declare namespace Deno { export function startTls( conn: Conn, options?: StartTlsOptions, - ): Promise; + ): Promise; export interface ListenTlsOptions { /** **UNSTABLE**: new API, yet to be vetted. -- cgit v1.2.3