country-list-with-dial-code-and-flag
Version:
Country list with dial code and flag
23 lines (22 loc) • 658 B
TypeScript
import { CountryInterface } from './types';
declare class Country {
private data;
constructor(data: CountryInterface);
get name(): string;
get localName(): string;
get dialCode(): string;
get dial_code(): string;
get code(): string;
get flag(): string;
get preferred(): boolean;
get secondary(): boolean;
get areaCodes(): Array<string>;
get countryCode(): string;
get partOf(): string[];
get currency(): string;
get currencyCode(): string;
get currencySymbol(): string;
formatPhoneNumber(phoneNumber: string | number, format?: any): any;
private parsePhoneNumber;
}
export { Country };