I'm a bit new to Typescript and encountered something I haven't seen before on an example I was reading. A collection of data is declared just like this:
tableData: {}[] = [
{
name: 'bob',
job: 'assassin',
weapons: 'pool noodle, water gun'
},
{
name: 'sally',
job: 'basketweaver',
weapons: 'needle, twine'
},
{
name: 'mary',
job: 'theif',
weapons: 'smoke bomb, marauders map'
},
]
What does {}[]
mean?
Is this any different than declaring tableData: any[] = [...]
?