Skip to content
RED SAG Skills
hard20 pts · first answer countsjavascripttypescriptconditional-types

A conditional type over a union

What type does X resolve to?

type ToArray<T> = T extends unknown ? T[] : never
type X = ToArray<string | number>
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions