I can’t count the amount of times I’ve defined an object type with unknown string keys and a specific value type. And despite using it all the time, I can’t for the life of me remember the [key: string] syntax.
Apparently TypeScript has a built in Record type that does exactly that: Keep in touch I occasionally send out a newsletter with personal stories, things I’ve been working on in the past month, and interesting things I come across. Pinky swear that I won't use your data for any other purposes.