KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to create a mapped type that transforms all properties of an interface but preserves whether each property is optional. When I use [K in keyof T]: Transform<T[K]> the resulting type makes everything required. I expected the optionality modifier to carry over automatically...
Tags (comma-separated)
Save Edits
Cancel