Intermediate TypeScript
Q44 / 100

What is the purpose of mapped types like "{ [K in keyof T]: boolean }"?

Correct! Well done.

Incorrect.

The correct answer is B) To create a new type by transforming properties of an existing type

B

Correct Answer

To create a new type by transforming properties of an existing type

Explanation

Mapped types iterate over the keys of an existing type to produce a new type with transformed property types.

Progress
44/100