summaryrefslogtreecommitdiff
path: root/ext/net
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-07-09 16:57:27 +1000
committerGitHub <noreply@github.com>2024-07-09 16:57:27 +1000
commit77c5a336adde9cdf7c0ce35dd24f83f1a887570e (patch)
tree4aa59a2d4720719d8114bac191811f39c0bc43b0 /ext/net
parentc3b168f5a2a076af011cb7eae0674b52075fb094 (diff)
docs(ext/net): explain `port: 0` behavior (#24475)
Diffstat (limited to 'ext/net')
-rw-r--r--ext/net/lib.deno_net.d.ts5
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.
*