Which type to use for objects when properties are not known ahead of time in TypeScript?
Originally Published Here ๐!
When the object properties are not known ahead of time but only the object's key type and value type (aka object structure), we can make use of index signatures in TypeScript.
TL;DR
// Index signature
// where `key` type...
melvingeorge-me.hashnode.dev3 min read