mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
docs(ext/net): explain port: 0
behavior (#24475)
This commit is contained in:
parent
c3b168f5a2
commit
77c5a336ad
2 changed files with 6 additions and 1 deletions
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 {
|
export interface ServeOptions {
|
||||||
/** The port to listen on.
|
/** The port to listen on.
|
||||||
|
*
|
||||||
|
* Set to `0` to listen on any available port.
|
||||||
*
|
*
|
||||||
* @default {8000} */
|
* @default {8000} */
|
||||||
port?: number;
|
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 */
|
/** @category Network */
|
||||||
export interface ListenOptions {
|
export interface ListenOptions {
|
||||||
/** The port to listen on. */
|
/** The port to listen on.
|
||||||
|
*
|
||||||
|
* Set to `0` to listen on any available port.
|
||||||
|
*/
|
||||||
port: number;
|
port: number;
|
||||||
/** A literal IP address or host name that can be resolved to an IP address.
|
/** A literal IP address or host name that can be resolved to an IP address.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue