country-state-city
Version:
Library for fetching Country, its States and Cities
15 lines (14 loc) • 705 B
TypeScript
import { IState } from './interface';
export declare function getAllStates(): IState[];
export declare function getStatesOfCountry(countryCode?: string): IState[];
export declare function getStateByCodeAndCountry(stateCode: string, countryCode: string): IState | undefined;
export declare function getStateByCode(isoCode: string): IState | undefined;
declare function sortByIsoCode(countries: IState[]): IState[];
declare const _default: {
getAllStates: typeof getAllStates;
getStatesOfCountry: typeof getStatesOfCountry;
getStateByCodeAndCountry: typeof getStateByCodeAndCountry;
getStateByCode: typeof getStateByCode;
sortByIsoCode: typeof sortByIsoCode;
};
export default _default;