diff options
author | Luca Casonato <hello@lcas.dev> | 2022-10-26 21:04:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 19:04:27 +0000 |
commit | f4f1f4f0b64030b744cfb43693af321ea8332bf4 (patch) | |
tree | 9d4e1fcf9ea9b92ef5a863fcd449edf8c0c9a834 /ext/net/lib.deno_net.d.ts | |
parent | de580cedd24be22dc267d5b92538364ed9998a46 (diff) |
feat(ext/net): reusePort for TCP on Linux (#16398)
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 */ |