mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
docs(ext/net): explain port: 0
behavior (#24475)
This commit is contained in:
parent
c3b168f5a2
commit
77c5a336ad
2
cli/tsc/dts/lib.deno.ns.d.ts
vendored
2
cli/tsc/dts/lib.deno.ns.d.ts
vendored
@ -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;
|
||||
|
5
ext/net/lib.deno_net.d.ts
vendored
5
ext/net/lib.deno_net.d.ts
vendored
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user