From ae9488857056d22f1eed5191f8632dc3ebc1a579 Mon Sep 17 00:00:00 2001 From: Steve Gravrock <sdg@panix.com> Date: Sat, 8 Jun 2024 07:38:06 -0700 Subject: [PATCH] Docs: fixed type of hostname config prop --- lib/types.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/types.js b/lib/types.js index 9ef35b7..734ab7f 100644 --- a/lib/types.js +++ b/lib/types.js @@ -57,7 +57,8 @@ * compatibility, the browsers will be pointed to localhost, but the listening * socket will listen on all IPs. * @name ServerCtorOptions#hostname - * @type string + * @default "localhost" + * @type string | undefined */ /** * The root directory of the project. @@ -304,10 +305,7 @@ * @type string */ /** - * The hostname to use. This influences both the URL given to browsers and the - * addresses on which the socket listens. If blank, for backward - * compatibility, the browsers will be pointed to localhost, but the listening - * socket will listen on all IPs. + * @see ServerCtorOptions#hostname * @name ServerStartOptions#hostname * @type string */