From 7e3d9084b69d12119b2ad6ef7ac2681e66e36aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 27 Feb 2022 15:18:30 +0100 Subject: feat: Add Deno.TcpConn class, change return type from Deno.connect (#13714) --- cli/dts/lib.deno.unstable.d.ts | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 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 08b3ca80c..221ecee60 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1049,7 +1049,10 @@ declare namespace Deno { * * Requires `allow-net` permission for "tcp" and `allow-read` for "unix". */ export function connect( - options: ConnectOptions | UnixConnectOptions, + options: ConnectOptions, + ): Promise; + export function connect( + options: UnixConnectOptions, ): Promise; export interface ConnectTlsOptions { @@ -1066,21 +1069,6 @@ declare namespace Deno { alpnProtocols?: string[]; } - export interface Conn { - /** - * **UNSTABLE**: new API, see https://github.com/denoland/deno/issues/13617. - * - * Enable/disable the use of Nagle's algorithm. Defaults to true. - */ - setNoDelay(nodelay?: boolean): void; - /** - * **UNSTABLE**: new API, see https://github.com/denoland/deno/issues/13617. - * - * Enable/disable keep-alive functionality. - */ - setKeepAlive(keepalive?: boolean): void; - } - export interface TlsHandshakeInfo { /** **UNSTABLE**: new API, yet to be vetted. * -- cgit v1.2.3