summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts2
-rw-r--r--ext/net/lib.deno_net.d.ts5
2 files changed, 6 insertions, 1 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index f6befc72b..c3a80e6db 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -6258,6 +6258,8 @@ declare namespace Deno {
export interface ServeOptions {
/** The port to listen on.
*
+ * Set to `0` to listen on any available port.
+ *
* @default {8000} */
port?: number;
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.
*