Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 692 Bytes

File metadata and controls

57 lines (40 loc) · 692 Bytes

typelab / assertions / IsNotEqual

type IsNotEqual<T1, T2> = IfNotEqual<T1, T2, true, false>;

Check the type inequality between T1 and T2.

`IsEqual` in reverse.

Type Parameters

Type Parameter Description

T1

The first type to compare.

T2

The second type to compare.

Returns

true if types T1 is not equal to T2, false otherwise.

Example

type NotEqual = IsNotEqual<string, ''>; // true
type Equal = IsNotEqual<string, string>; // false