typescript
How to get property based union type from an array of objects
11/21/2023
You might want to use a union type from property values as an argument type for a function. How to derive one from an array of objects?
Using mapped types to access object properties
4/6/2022
Once in a while, I struggle to work with objects containing different types of property values now and then. Yet, using mapped types, it is a piece of cake.