Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jeremyjacob
· 4y ago · 0 comments
Fortunately that's not too difficult:
let x: {[key: string]: Type}
But maybe the documentation is lacking here?
Comments
[–]
aylmao
4y ago
For the record, this is equivalent to:
let x: Record<string, Type>
Pun intended.