Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptconditional-type distributionSingle-choice MCQ1 views

What does `Distribute<never>` resolve to, and why does it differ from instantiating with a non-empty union?

type Distribute<T> = T extends string ? "y" : "n"; type X = Distribute<never>;