typelab / assertions / IsNotIntersected
type IsNotIntersected<T1, T2> = IfNotIntersected<T1, T2, true, false>;Checks if type T1 is not intersected with type T2.
| Type Parameter | Description |
|---|---|
|
|
The first type to compare. |
|
|
The second type to compare. |
true if T1 & T2 is never, false otherwise.
type Intersected = IsIntersected<'a' | 'c', 'a' | 'b'>; // true
type NotIntersected = IsIntersected<'c', 'a' | 'b'>; // false