diff options
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 508e1ca6c..54869e15a 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -909,7 +909,7 @@ declare namespace Deno { * Requires `allow-read` and `allow-write` permission. */ export function listen( options: UnixListenOptions & { transport: "unix" }, - ): Listener; + ): Listener<UnixAddr>; /** **UNSTABLE**: new API, yet to be vetted * @@ -969,8 +969,11 @@ declare namespace Deno { * * Requires `allow-net` permission for "tcp" and `allow-read` for "unix". */ export function connect( - options: ConnectOptions | UnixConnectOptions, - ): Promise<Conn>; + options: ConnectOptions, + ): Promise<Conn<NetAddr>>; + export function connect( + options: UnixConnectOptions, + ): Promise<Conn<UnixAddr>>; export interface StartTlsOptions { /** A literal IP address or host name that can be resolved to an IP address. @@ -997,9 +1000,9 @@ declare namespace Deno { * Requires `allow-net` permission. */ export function startTls( - conn: Conn, + conn: Conn<NetAddr>, options?: StartTlsOptions, - ): Promise<Conn>; + ): Promise<Conn<NetAddr>>; export interface ListenTlsOptions { /** **UNSTABLE**: new API, yet to be vetted. |