repox-countries
Version:
Provides up-to-date country, state, city, language, currency, phone code, and postal code data, sourced daily from the GeoNames API. Integrate easily into forms or use for data verification. Updated versions are released when changes occur.
20 lines (19 loc) • 944 B
TypeScript
import { Country, CountryState, Currency, Language, PhoneCode, StateCity } from '../types';
import { CountryAdditional } from '../crawl/types';
export declare function getCountries(): Country[];
export declare function getCountriesAdditional(): CountryAdditional[];
export declare function getStates(countryCode: string): CountryState | undefined;
export declare function getCities(countryCode: string, stateCode: string): StateCity | undefined;
export declare function getPhoneCodes(): PhoneCode[];
export declare function getLanguages(): Language[];
export declare function getCurrencies(): Currency[];
declare const _default: {
getCountries: typeof getCountries;
getCountriesAdditional: typeof getCountriesAdditional;
getStates: typeof getStates;
getCities: typeof getCities;
getPhoneCodes: typeof getPhoneCodes;
getLanguages: typeof getLanguages;
getCurrencies: typeof getCurrencies;
};
export default _default;