ts-type-forge
    Preparing search index...

    Type Alias BoolNeq<A, B>

    BoolNeq: BoolNot<BoolEq<A, B>>

    Performs a logical inequality (XOR) operation on two boolean literal types A and B. Returns true if A and B are different, false otherwise.

    Type Parameters

    • A extends boolean

      The first boolean literal type (true or false).

    • B extends boolean

      The second boolean literal type (true or false).

    type T_T = BoolNeq<true, true>;   // false
    type T_F = BoolNeq<true, false>; // true
    type F_T = BoolNeq<false, true>; // true
    type F_F = BoolNeq<false, false>; // false