-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
index.d.ts
56 lines (48 loc) · 1.05 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
48
49
50
51
52
53
54
55
56
export interface OfficialAndCommon {
common: string
official: string
}
export interface CountryName extends OfficialAndCommon {
native: {
[languageCode: string]: OfficialAndCommon
}
}
export interface Currency {
name: string
symbol: string
}
export interface IntlDirectDialingCode {
root: string
suffixes: string[]
}
export interface Demonyms {
f: string
m: string
}
export interface Country {
name: CountryName
tld: string[]
cca2: string
ccn3: string
cca3: string
cioc: string
independent: boolean
status: string
currencies: { [currencyCode: string]: Currency }
idd: IntlDirectDialingCode
capital: string[]
altSpellings: string[]
region: string
subregion: string
languages: { [languageCode: string]: string }
translations: { [languageCode: string]: OfficialAndCommon }
latlng: [number, number]
demonyms: { [languageCode: string]: Demonyms }
landlocked: boolean
borders: string[]
area: number
flag: string
}
export type Countries = Country[]
declare const countries: Countries
export default countries