@beenotung/tslib
Version:
utils library in Typescript
15 lines (14 loc) • 434 B
TypeScript
/** *****************
* Registry Pattern *
********************/
export type TelHandler = {
country_code: string;
to_full: (tel: string | number) => string;
format: (tel: string | number) => string;
};
/**
* Registry for all country handlers
* Order matters: unique patterns first, then overlapping patterns
* Registration order determines auto-detection priority
*/
export declare const tel_handlers: TelHandler[];