Protected
Returns true if there is no intersection between First the elements of Rest.
true
First
Rest
A string type
string
A tuple of string types
true if there is no intersection between First the elements of Rest, otherwise a custom error type.
type ReturnsTrue = AllDisjoint<'a', ['b' | 'c', 'd']>;// truetype ReturnsError = AllDisjoint<'c', ['b' | 'c', 'c']>;// { __error__: 'overlaps on c' } Copy
type ReturnsTrue = AllDisjoint<'a', ['b' | 'c', 'd']>;// truetype ReturnsError = AllDisjoint<'c', ['b' | 'c', 'c']>;// { __error__: 'overlaps on c' }
Returns
trueif there is no intersection betweenFirstthe elements ofRest.