distributive conditional type

A conditional type on a bare type parameter, which is applied separately to each member of a union and the results combined.

In more detail

If T is the union A | B, the condition is checked once for A and once for B, and the two answers are joined into a union again. This is how Exclude filters unions. Wrapping both sides in brackets, [T] extends [U], turns distribution off.

Related terms

Taught in

References