Simon Høiberg on LinkedIn: TypeScript Tip 💡 Use the utility type 'Record' to make an object… | 11 comments
Simon Høiberg on X: "TypeScript Tip 💡 Use the utility type 'Record' to make an object indexable, instead of typing it out manually. It's cleaner and becomes handy if you want to
Record<string, string> allows object keys of type symbol · Issue #53265 · microsoft/TypeScript · GitHub
![Haz on X: "TypeScript protip: accept any string, but suggest some specific values on autocomplete. https://t.co/Sem7m3ycqf https://t.co/hdtsKHdy4A" / X Haz on X: "TypeScript protip: accept any string, but suggest some specific values on autocomplete. https://t.co/Sem7m3ycqf https://t.co/hdtsKHdy4A" / X](https://pbs.twimg.com/media/FSc_Z2JXoAA0AgC.jpg:large)
Haz on X: "TypeScript protip: accept any string, but suggest some specific values on autocomplete. https://t.co/Sem7m3ycqf https://t.co/hdtsKHdy4A" / X
![javascript - TypeScript Type 'Record<string, string>' is not assignable to type 'string' - Stack Overflow javascript - TypeScript Type 'Record<string, string>' is not assignable to type 'string' - Stack Overflow](https://i.stack.imgur.com/R3P4x.png)
javascript - TypeScript Type 'Record<string, string>' is not assignable to type 'string' - Stack Overflow
![typescript - How to declare a Record type that accepts any type contained in a Union? - Stack Overflow typescript - How to declare a Record type that accepts any type contained in a Union? - Stack Overflow](https://i.stack.imgur.com/Agyno.png)