Skip to content
RED SAG Skills
hard20 pts · first answer countsjavascripttypescriptgenerics

A const type parameter

With TypeScript 5+, what is the inferred type of r?

function pick<const T extends readonly string[]>(xs: T) { return xs }
const r = pick(["IN", "AE"])
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions