Type alias IsNot<One, Two>

IsNot<One, Two>: Not<Is<One, Two>>

Checks if two types are not exactly equal.

Type Parameters

  • One
  • Two

Example

type Result1 = IsNot<string, string>; // is false
type Result2 = IsNot<number, string>; // is true
type Result3 = IsNot<boolean | string, string | boolean>; // is false