TypeScript Tip 💡
Use the utility type 'Record' to make an object indexable, instead of typing it out manually.
It's more clean, and becomes handy if you want to map the properties of one type to another.
#Typescripttip
Use the utility type 'Record' to make an object indexable, instead of typing it out manually.
It's more clean, and becomes handy if you want to map the properties of one type to another.
#Typescripttip