country-mobile-number-validator
Version:
A lightweight Javascript library for retrieving country information, including country codes, based on provided data. Simplify your application's logic by seamlessly integrating with this package to extract essential country details, facilitating tasks su
21 lines (18 loc) • 793 B
TypeScript
type CountryData = {
country: string;
phoneNumberLengthByCountry_phLengthMax: number | null;
phoneNumberLengthByCountry_phLengthMin: number | null;
phoneNumberLengthByCountry_phLength: string | number;
phoneNumberLengthByCountry_CountryCode: number | null;
phoneNumberLengthByCountry_phLength_InternationalPrefix: number | null;
phoneNumberLengthByCountry_phLength_NationalPrefix: number | null;
phoneNumberLengthByCountry_Notes: string | null;
};
type NumberValidationData = {
country: string;
phLengthMax: number | null;
phLengthMin: number | null;
phExample?: string | number;
};
declare function getCountryDataByCode(countryCode: number): NumberValidationData;
export { type CountryData, type NumberValidationData, getCountryDataByCode };