What is a mapped type in TypeScript?

TypeScript Professional Hard

TypeScript Professional — Hard

What is a mapped type in TypeScript?

Key points

  • Mapped types iterate over keys of existing types
  • They transform properties during iteration
  • Provide flexibility in creating new types based on existing ones

Ready to go further?

Related questions