Introduction
Mapped types help create new types by transforming existing ones easily. They save time and avoid repeating similar code.
When you want to make all properties of an object type optional or readonly.
When you need to create a type that changes all property types in a consistent way.
When you want to reuse an existing type but with some modifications to its properties.
When you want to apply the same change to many properties without writing each one manually.