Working With Mapped Types in TypeScript
Too Long; Didn't Read
The main aim is to grasp the workings of mapped types in [TypeScript] and explore various typical scenarios. In this guide, I'll explain how mapped types can be utilized and the assistance provided by utility types. Let’s say, that you have an object, that describes some entity, like a person. And you want to have a [hashmap], that stores what component to render for each field. For that, we might use something called a mapped type.