-
Notifications
You must be signed in to change notification settings - Fork 43
/
index.d.ts
47 lines (43 loc) · 1.32 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
declare module 'city-timezones' {
interface CityData {
readonly lat: number;
readonly lng: number;
readonly pop: number;
readonly city: string;
readonly iso2: string;
readonly iso3: string;
readonly country: string;
readonly timezone: string;
readonly province: string;
readonly exactCity: string;
readonly city_ascii: string;
readonly state_ansi: string;
readonly exactProvince: string;
}
/**
* Search for city info by searching by city name.
*
* @param input City name.
* @returns All the matching cities from search criteria.
*/
export function lookupViaCity(input: string): CityData[];
/**
* Search for city info by searching a state or province name I.E. Springfield MO
*
* @param input State or province name.
* @returns All the matching cities from search criteria.
*/
export function findFromCityStateProvince(input: string): CityData[];
/**
*
* @param input Iso2 or iso3 code
* @returns All the matching cities from search criteria.
*/
export function findFromIsoCode(input: string): CityData[];
/**
* Array of all city objects
*
* @returns All the cities.
*/
export const cityMapping: CityData[];
}