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

`Raw` distributes over unions. For the two aliases below, which still distribute when given `1 | 2`?

type Raw<T> = T extends any ? T[] : never; type ViaAlias<T> = Raw<T>; type NotNaked<T> = (T & {}) extends any ? (T & {})[] : never;