Introduction
Mapped type modifiers let you change properties of an object type all at once. You can make all properties readonly or optional easily.
When you want to make all properties of an object readonly to prevent changes.
When you want to make some or all properties optional for flexibility.
When you want to create a new type based on another but with modified property rules.
When you want to enforce immutability on an object type in your code.
When you want to allow partial updates by making properties optional.