@exuus/rwanda-phone-utils
Version:
A package to validate and format rwandan phone numbers
17 lines • 551 B
TypeScript
import { formatTypes } from "./constants";
declare type formatType = string | null;
export interface ReturnValues {
isValid: boolean;
telco: string | null;
short: formatType;
normalized: formatType;
error?: string | null;
dashed: formatType;
formatted: formatType;
unformatted: formatType;
format: (shape?: formatTypes) => string;
}
export declare type PhoneNumberType = (phoneNumber: string) => ReturnValues;
declare const phoneUtils: PhoneNumberType;
export default phoneUtils;
//# sourceMappingURL=index.d.ts.map