CodeZettaInterview Hub

TypeScript · Mapped Types · Mid-Level · Concept

Homomorphic mapped types — why special?

Short Interview Answer

Preserve optional/readonly modifiers from the original when mapping keyof T.

Detailed Explanation

Important when wrapping existing object types.

Did you know this answer?