e164num
Version:
**Light validation and manipulation of E.164 phone numbers.**
10 lines (9 loc) • 432 B
TypeScript
/**
* Returns true if the given phone number is a valid E.164 phone number. This
* function does not check if the phone number is assigned to a user or if it is
* reachable. It also only checks for valid length within a country code for US
* phone numbers. Returns false otherwise.
*
* @param e164PhoneNumber The phone number to validate.
*/
export declare const isValidE164PhoneNumber: (e164PhoneNumber: string) => boolean;