Mapped Types
Last updated
What is Mapped Types?
Mapped types in TypeScript allow you to create new types based on existing ones by transforming each property. They iterate over the keys of an existing type and apply a transformation to each key and/or value, effectively mapping the original type to a new type structure. This provides a concise and powerful way to generate types that are variations of other types, promoting code reuse and reducing redundancy.
Free resources to learn Mapped Types
- Official docsMapped Types
More in stage 13: Advanced Types
Mapped Types: common questions
Can I learn Mapped Types in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Mapped Types in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Mapped Types tutorial for beginners?
It is lesson 78 of 93 in the free TypeScript roadmap, in stage 13, Advanced Types. If you are new to TypeScript, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.