UNPKG

country-state-no-city

Version:

Library for fetching Country, and its States forked from country-state-city

6 lines (5 loc) 450 B
import { ICountry, IState } from '../interface'; export declare const findEntryByCode: (source: any, code: string) => any; export declare const findStateByCodeAndCountryCode: (source: any, code: string, countryCode: string) => any; export declare function defaultKeyToCompare<T extends ICountry | IState>(entity: T): string; export declare const compare: <T extends ICountry | IState>(a: T, b: T, keyToCompare?: (entity: T) => string) => 0 | 1 | -1;