What are Mapped Types in TypeScript, and provide an example?

Instruction: Explain the concept of Mapped Types and illustrate with an example.

Context: This question tests the candidate's knowledge and application of Mapped Types in TypeScript, a powerful feature for creating new types based on existing ones.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

At its core, Mapped Types apply a given set of modifiers to each property in an existing type...

Related Questions