Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptinference internalsSingle-choice MCQ

Inference can flow THROUGH a homomorphic mapped type back to the underlying type parameter (a "reverse mapped type"). What is the type of `r`?

declare function pick<T>(obj: { [K in keyof T]: T[K] }): T; const r = pick({ a: 1, b: "x" });