forked from mledoze/countries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
41 lines (36 loc) · 814 Bytes
/
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
export interface OfficialAndCommon {
common: string
official: string
}
export interface CountryName extends OfficialAndCommon {
native: {
[languageCode: string]: OfficialAndCommon
}
}
export interface Country {
name: CountryName
tld: string[]
cca2: string
ccn3: string
cca3: string
cioc: string
independent: boolean
status: string
currency: string[]
callingCode: string[]
capital: string[]
altSpellings: string[]
region: string
subregion: string
languages: { [languageCode: string]: string }
translations: { [languageCode: string]: OfficialAndCommon }
latlng: [number, number]
demonym: string
landlocked: boolean
borders: string[]
area: number
flag: string
}
export type Countries = Country[]
declare const countries: Countries
export default countries