Skip to content

Commit

Permalink
docs(ext/net): explain port: 0 behavior (denoland#24475)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Jul 9, 2024
1 parent c3b168f commit 77c5a33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cli/tsc/dts/lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6257,6 +6257,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;
Expand Down
5 changes: 4 additions & 1 deletion ext/net/lib.deno_net.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 77c5a33

Please sign in to comment.