One member per key of T: it has that key, and forbids every other key (?: never). Where a plain union would accept
an object that mixes the keys of several members, this one is refused by the compiler. For configurations that hold
exactly one constraint among several.
One member per key of
T: it has that key, and forbids every other key (?: never). Where a plain union would accept an object that mixes the keys of several members, this one is refused by the compiler. For configurations that hold exactly one constraint among several.