forked from mledoze/countries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
51 lines (44 loc) · 992 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
42
43
44
45
46
47
48
49
50
51
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 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]
demonym: string
landlocked: boolean
borders: string[]
area: number
flag: string
}
export type Countries = Country[]
declare const countries: Countries
export default countries