typelab / assertions / IsNotEqual
type IsNotEqual<T1, T2> = IfNotEqual<T1, T2, true, false>;Check the type inequality between T1 and T2.
`IsEqual` in reverse.
| Type Parameter | Description |
|---|---|
|
|
The first type to compare. |
|
|
The second type to compare. |
true if types T1 is not equal to T2, false otherwise.
type NotEqual = IsNotEqual<string, ''>; // true
type Equal = IsNotEqual<string, string>; // false