Type Alias AllDisjoint<First, Rest>Protected
AllDisjoint<First, Rest>: Rest extends [infer Head, ...(infer Tail)] ? Head extends string ? [First & Head] extends [never] ? AllDisjoint<First, Tail extends string[] ? Tail : []> : { __error__: `overlaps on ${First}`; } : true : true Type Parameters
- First extends string
- Rest extends string[]
Returns
true
if there is no intersection betweenFirst
the elements ofRest
.