join-host-port.d.mts 352 B

1234567891011
  1. /**
  2. * joinHostPort combines host and port into a network address of the
  3. * form "host:port". If host contains a colon, as found in literal
  4. * IPv6 addresses, then JoinHostPort returns "[host]:port".
  5. *
  6. * @param host
  7. * @param port
  8. * @returns Cleaned up host
  9. * @internal
  10. */
  11. export declare function joinHostPort(host: string, port?: number): string;