UNPKG

simple-countries-list

Version:

Simple package for getting all world countries and their short names.

14 lines (11 loc) 439 B
type CountriesListType = { name: string; shortName: string; }; declare const countryNames: () => Promise<string[]>; declare const countryShortNames: () => Promise<string[]>; declare const countries: () => Promise<CountriesListType[]>; declare const getCountry: ({ name }: { name: string; }) => Promise<CountriesListType | undefined>; export { type CountriesListType, countries, countryNames, countryShortNames, getCountry };