e164num
Version:
**Light validation and manipulation of E.164 phone numbers.**
9 lines (8 loc) • 322 B
TypeScript
/**
* Returns a formatted partial US phone number based on the received E.164 phone
* number. This can be used to format phone numbers in input fields as the user
* types.
*
* @param e164PhoneNumber The phone number to format.
*/
export declare const formatPartialUSPhoneNumber: (e164PhoneNumber: string) => string;