Explore Library
Quiz

Distributive Conditional Types

Understand how conditional types distribute over union types with naked type parameters.

Given the code below, what is the resolved type of `Result`? type ToArray<T> = T extends any ? T[] : never; type Result = ToArray<string | number>;