Skip to content

Commit 46f7290

Browse files
committed
Add the types for the project and the icons
1 parent 6140455 commit 46f7290

8 files changed

Lines changed: 220 additions & 0 deletions

File tree

public/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as sun } from './sunW.svg'
2+
export { default as moon } from './moon.svg'

public/moon.svg

Lines changed: 1 addition & 0 deletions
Loading

public/move-left.svg

Lines changed: 1 addition & 0 deletions
Loading

public/move-leftW.svg

Lines changed: 1 addition & 0 deletions
Loading

public/search.svg

Lines changed: 1 addition & 0 deletions
Loading

public/searchW.svg

Lines changed: 1 addition & 0 deletions
Loading

public/sunW.svg

Lines changed: 1 addition & 0 deletions
Loading

types/CountryData.ts

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
interface CommonName {
2+
common: string
3+
official: string
4+
nativeName: {
5+
ell: {
6+
common: string
7+
official: string
8+
}
9+
tur: {
10+
common: string
11+
official: string
12+
}
13+
}
14+
}
15+
16+
interface Currency {
17+
name: string
18+
symbol: string
19+
}
20+
21+
interface IDD {
22+
root: string
23+
suffixes: string[]
24+
}
25+
26+
interface Languages {
27+
ell: string
28+
tur: string
29+
}
30+
31+
interface Translations {
32+
ara: {
33+
official: string
34+
common: string
35+
}
36+
bre: {
37+
official: string
38+
common: string
39+
}
40+
ces: {
41+
official: string
42+
common: string
43+
}
44+
cym: {
45+
official: string
46+
common: string
47+
}
48+
deu: {
49+
official: string
50+
common: string
51+
}
52+
est: {
53+
official: string
54+
common: string
55+
}
56+
fin: {
57+
official: string
58+
common: string
59+
}
60+
fra: {
61+
official: string
62+
common: string
63+
}
64+
hrv: {
65+
official: string
66+
common: string
67+
}
68+
hun: {
69+
official: string
70+
common: string
71+
}
72+
ita: {
73+
official: string
74+
common: string
75+
}
76+
jpn: {
77+
official: string
78+
common: string
79+
}
80+
kor: {
81+
official: string
82+
common: string
83+
}
84+
nld: {
85+
official: string
86+
common: string
87+
}
88+
per: {
89+
official: string
90+
common: string
91+
}
92+
pol: {
93+
official: string
94+
common: string
95+
}
96+
por: {
97+
official: string
98+
common: string
99+
}
100+
rus: {
101+
official: string
102+
common: string
103+
}
104+
slk: {
105+
official: string
106+
common: string
107+
}
108+
spa: {
109+
official: string
110+
common: string
111+
}
112+
srp: {
113+
official: string
114+
common: string
115+
}
116+
swe: {
117+
official: string
118+
common: string
119+
}
120+
tur: {
121+
official: string
122+
common: string
123+
}
124+
urd: {
125+
official: string
126+
common: string
127+
}
128+
zho: {
129+
official: string
130+
common: string
131+
}
132+
}
133+
134+
interface Demonyms {
135+
eng: {
136+
f: string
137+
m: string
138+
}
139+
fra: {
140+
f: string
141+
m: string
142+
}
143+
}
144+
145+
interface Maps {
146+
googleMaps: string
147+
openStreetMaps: string
148+
}
149+
150+
interface Flags {
151+
png: string
152+
svg: string
153+
alt: string
154+
}
155+
156+
interface CoatOfArms {
157+
png: string
158+
svg: string
159+
}
160+
161+
interface CapitalInfo {
162+
latlng: number[]
163+
}
164+
165+
interface PostalCode {
166+
format: string
167+
regex: string
168+
}
169+
170+
interface CountryData {
171+
name: CommonName
172+
tld: string[]
173+
cca2: string
174+
ccn3: string
175+
cca3: string
176+
cioc: string
177+
independent: boolean
178+
status: string
179+
unMember: boolean
180+
currencies: {
181+
EUR: Currency
182+
}
183+
idd: IDD
184+
capital: string[]
185+
altSpellings: string[]
186+
region: string
187+
subregion: string
188+
languages: Languages
189+
translations: Translations
190+
latlng: number[]
191+
landlocked: boolean
192+
area: number
193+
demonyms: Demonyms
194+
flag: string
195+
maps: Maps
196+
population: number
197+
gini: {
198+
'2018': number
199+
}
200+
fifa: string
201+
car: {
202+
signs: string[]
203+
side: string
204+
}
205+
timezones: string[]
206+
continents: string[]
207+
flags: Flags
208+
coatOfArms: CoatOfArms
209+
startOfWeek: string
210+
capitalInfo: CapitalInfo
211+
postalCode: PostalCode
212+
}

0 commit comments

Comments
 (0)