@beenotung/tslib
Version:
utils library in Typescript
24 lines (23 loc) • 681 B
TypeScript
/** ******************************
* Macau mobile phone number *
*********************************/
/**
* starts with 6
* news: https://en.wikipedia.org/wiki/Telephone_numbers_in_Macau
* */
export declare function is_mo_mobile_phone_prefix(tel: string): boolean;
/**
* with/without +853 prefix
*/
export declare function is_mo_mobile_phone(tel: number | string): boolean;
/**
* very forgiving
*
* @return +853xxxxyyyy if valid
* empty string if not valid
* */
export declare function to_full_mo_mobile_phone(tel: string | number): string;
/**
* @returns +853 xxxx yyyy if valid
*/
export declare function format_mo_mobile_phone(tel: string | number): string;