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

What does the `const` type parameter modifier do to the inferred type of the argument here?

function tup<const T extends readonly unknown[]>(t: T): T { return t; } const x = tup([1, "a", true]);