diff options
author | Yury Selivanov <yury@edgedb.com> | 2021-11-26 10:59:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 19:59:53 +0100 |
commit | 1d3f734e1815bf1649e0cac445be9eacb4cd296d (patch) | |
tree | f0178e951f3f44313def5d7ea8e2e391219f7791 /ext/net/lib.deno_net.d.ts | |
parent | d763633781be484bb19b458208dd7c11efb83228 (diff) |
feat(ext/net): ALPN support in `Deno.connectTls()` (#12786)
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r-- | ext/net/lib.deno_net.d.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts index 81c248871..accf01f96 100644 --- a/ext/net/lib.deno_net.d.ts +++ b/ext/net/lib.deno_net.d.ts @@ -52,11 +52,14 @@ declare namespace Deno { closeWrite(): Promise<void>; } + // deno-lint-ignore no-empty-interface + export interface TlsHandshakeInfo {} + export interface TlsConn extends Conn { /** Runs the client or server handshake protocol to completion if that has * not happened yet. Calling this method is optional; the TLS handshake * will be completed automatically as soon as data is sent or received. */ - handshake(): Promise<void>; + handshake(): Promise<TlsHandshakeInfo>; } export interface ListenOptions { |