News for hackers. Stuff that matters.
Re:TypeScript is terrible for library developers by jeremyjacob on Tuesday August 23, 2022 @05:31PM (#32571831)
Fortunately that's not too difficult:

  let x: {[key: string]: Type}
But maybe the documentation is lacking here?
Re:TypeScript is terrible for library developers by aylmao on Tuesday August 23, 2022 @05:56PM (#32572099)
For the record, this is equivalent to:

  let x: Record<string, Type>
Pun intended.