UNPKG

typia

Version:

Superfast runtime validators with only one line

9 lines (8 loc) 449 B
import { _ILengthProps } from "./_randomStringLength"; export declare const _randomFormatHostname: (props?: _ILengthProps) => string; /** * Builds dot-joined hostname labels totaling exactly `length` characters, each * label within 63 chars. Shared with the idn-hostname generator, which reserves * a fixed `.<tld>` suffix and realizes the rest as these leading labels. */ export declare const _randomHostnameLabels: (length: number) => string;