Mapped Type (TypeScript)

A mapped type builds a new type by transforming each property of an existing one, using a `[K in keyof T]` loop in the type system. It is how you generate…