summaryrefslogtreecommitdiff
path: root/ext/net/lib.deno_net.d.ts
diff options
context:
space:
mode:
authorYury Selivanov <yury@edgedb.com>2021-11-26 10:59:53 -0800
committerGitHub <noreply@github.com>2021-11-26 19:59:53 +0100
commit1d3f734e1815bf1649e0cac445be9eacb4cd296d (patch)
treef0178e951f3f44313def5d7ea8e2e391219f7791 /ext/net/lib.deno_net.d.ts
parentd763633781be484bb19b458208dd7c11efb83228 (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.ts5
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 {