diff options
author | Bert Belder <bertbelder@gmail.com> | 2021-10-26 22:27:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 22:27:47 +0200 |
commit | cf9c4f0031a46b58989a984af0528a2005547e2d (patch) | |
tree | 40d2a2efbc8570e0f875ce877f6f95c6d5f27be9 /cli/dts/lib.deno.unstable.d.ts | |
parent | c27ef0ac7b5fd7aba4de24292e80387c8243896e (diff) |
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.
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<Conn>; + export function connectTls(options: ConnectTlsOptions): Promise<TlsConn>; 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<Conn>; + ): Promise<TlsConn>; export interface ListenTlsOptions { /** **UNSTABLE**: new API, yet to be vetted. |