Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptpreventing distributionSingle-choice MCQ

Comparing the distributive `ToArr` with the wrapped `NoDist`, what are the resolved types of `A` and `B`?

type ToArr<T> = T extends any ? T[] : never; type A = ToArr<string | number>; type NoDist<T> = [T] extends [any] ? T[] : never; type B = NoDist<string | number>;