UNPKG

countries-state-list

Version:

countries-state-list ============================== Basic library for Country, State

30 lines (29 loc) 717 B
export interface Timezones { zoneName: string; gmtOffset: number; gmtOffsetName: string; abbreviation: string; tzName: string; } export interface ICountry { name: string; phonecode: string; isoCode: string; flag: string; currency: string; latitude: string; longitude: string; timezones?: Timezones[]; getAllCountries?(): ICountry[]; getCountryByCode?(): ICountry; } export interface IState { name: string; isoCode: string; countryCode: string; latitude?: string | null; longitude?: string | null; getStatesOfCountry?(): IState[]; getStateByCodeAndCountry?(): IState; getStateByCode?(): IState; }