diff options
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r-- | ext/net/lib.deno_net.d.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts index df569f93a..1941c0426 100644 --- a/ext/net/lib.deno_net.d.ts +++ b/ext/net/lib.deno_net.d.ts @@ -91,6 +91,11 @@ declare namespace Deno { hostname?: string; } + /** @category Network */ + // deno-lint-ignore no-empty-interface + export interface TcpListenOptions extends ListenOptions { + } + /** Listen announces on the local transport address. * * ```ts @@ -106,11 +111,11 @@ declare namespace Deno { * @category Network */ export function listen( - options: ListenOptions & { transport?: "tcp" }, + options: TcpListenOptions & { transport?: "tcp" }, ): Listener; /** @category Network */ - export interface ListenTlsOptions extends ListenOptions { + export interface ListenTlsOptions extends TcpListenOptions { /** Server private key in PEM format */ key?: string; /** Cert chain in PEM format */ |