Concept Flow - Mapped type with conditional types
Start with original type
Iterate over each key in type
Apply conditional check on key's type
Yes No
Transform type
Build new mapped type with transformed properties
Resulting type
We take each property of a type, check its type with a condition, and then transform it or keep it, building a new type.