Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptconditional typesSingle-choice MCQ

This conditional type uses a naked type parameter. What is the resolved type of `R`?

type ToArray<T> = T extends unknown ? T[] : never; type R = ToArray<string | number>;