Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptNoInfer and const type paramsSingle-choice MCQ

What is the inferred type of `d` when a `const` type parameter receives a nested object literal?

declare function f<const T>(x: T): T; const d = f({ a: 1, b: { c: 2 } }); // ^? type of d?