Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptmapped typesSingle-choice MCQ2 views

A homomorphic mapped type (one written as `[K in keyof T]`) copies existing modifiers. What is true of `Result` here?

type MyPartial<T> = { [K in keyof T]?: T[K] }; type Result = MyPartial<{ readonly a: number; b: string }>;