Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptgeneric constraintsSingle-choice MCQ

With a `const` type parameter, what is the inferred return type of this call?

function tuple<const T extends readonly unknown[]>(x: T): T { return x; } const r = tuple(["a", "b"]);