e164num
Version:
**Light validation and manipulation of E.164 phone numbers.**
9 lines (8 loc) • 361 B
TypeScript
/**
* Returns true if the given phone number is a valid partial E.164 phone number.
* Empty string is considered valid as a starting point for input.
* Returns false otherwise.
*
* @param partialE164PhoneNumber The partial E.164 phone number to validate.
*/
export declare const isValidPartialE164PhoneNumber: (partialE164PhoneNumber: string) => boolean;