TypeScript — Understanding “keyof typeof”
TypeScript has the keyof and typeof keywords allowing you to retrieve related keys and types of a value or type. We used the combination keyof typeof in tutorials here on Future Studio showing you how to get all enum keys and how to use a string as enum key. This …
Continue Reading