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

Which is the inferred type T at call site?

declare function id<const T>(x: T): T;\nconst T = id("red");