@aerapass/country-data
Version:
Data about countries - like their ISO codes and currencies
46 lines (45 loc) • 1 kB
TypeScript
export * from './continents';
export * from './regions';
export interface Country {
alpha2: string;
alpha3: string;
countryCallingCodes: string[];
currencies: string[];
emoji: string;
ioc: string;
languages: string;
name: string;
numeric: string;
status: 'assigned' | 'reserved' | 'user assigned' | 'deleted';
}
export interface CountryMap {
[countryCode: string]: Country;
}
export declare const countries: CountryMap & {
all: Country[];
};
export interface Currency {
code: string;
decimals: number;
name: string;
number: string;
symbol: string;
}
export interface CurrencyMap {
[code: string]: Currency;
}
export declare const currencies: CurrencyMap & {
all: Currency[];
};
export interface Language {
alpha2: string;
alpha3: string;
bibliographic: string;
name: string;
}
export interface LanguageMap {
[code: string]: Language;
}
export declare const languages: LanguageMap & {
all: Language[];
};