I am trying to create an array of objects for my project, but during the build, I face this issue:
TS1110: Type expected
TS1109: Expression expected
My array looks like this:
export let COUNTRIES: Array<{ name: string, segments: number[] }> = Array({
"name":"Afghanistan",
"segments":[
4687,
4787,
4790,
4795,
4880
]},{
"name":"Albania",
"segments":[
4136,
4248
]})
I tried this solution from Stack Overflow but to no results.
Tried with an interface, having another issue: