country-state-list
Version:
Library for fetching Country, its States
9 lines (8 loc) • 308 B
TypeScript
import { ICountry } from './interface';
declare function getCountryByCode(isoCode: string): ICountry | undefined;
declare function getAllCountries(): ICountry[];
declare const _default: {
getCountryByCode: typeof getCountryByCode;
getAllCountries: typeof getAllCountries;
};
export default _default;