diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-07-09 16:57:27 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-09 16:57:27 +1000 |
commit | 77c5a336adde9cdf7c0ce35dd24f83f1a887570e (patch) | |
tree | 4aa59a2d4720719d8114bac191811f39c0bc43b0 /ext/net | |
parent | c3b168f5a2a076af011cb7eae0674b52075fb094 (diff) |
docs(ext/net): explain `port: 0` behavior (#24475)
Diffstat (limited to 'ext/net')
-rw-r--r-- | ext/net/lib.deno_net.d.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts index f036bcd39..13fbd3514 100644 --- a/ext/net/lib.deno_net.d.ts +++ b/ext/net/lib.deno_net.d.ts @@ -135,7 +135,10 @@ declare namespace Deno { /** @category Network */ export interface ListenOptions { - /** The port to listen on. */ + /** The port to listen on. + * + * Set to `0` to listen on any available port. + */ port: number; /** A literal IP address or host name that can be resolved to an IP address. * |