Returns true if there is no intersection between the elements of T.
true
T
The tuple of string types to check for mutual exclusivity.
true if there is no intersection between the elements of T, otherwise a custom error type.
type ReturnsTrue = MutuallyExclusive<['a', 'b' | 'c', 'd']>;// truetype ReturnsError = MutuallyExclusive<['a', 'b' | 'c', 'c']>;// { __error__: 'overlaps on c' } Copy
type ReturnsTrue = MutuallyExclusive<['a', 'b' | 'c', 'd']>;// truetype ReturnsError = MutuallyExclusive<['a', 'b' | 'c', 'c']>;// { __error__: 'overlaps on c' }
Returns
trueif there is no intersection between the elements ofT.