diff options
Diffstat (limited to 'cli/dts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 20 |
1 files changed, 4 insertions, 16 deletions
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<TcpConn>; + export function connect( + options: UnixConnectOptions, ): Promise<Conn>; 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. * |