devtypes - v2.0.0
    Preparing search index...

    Type Alias AssertFalse<T>

    AssertFalse: T

    Assert that a boolean type resolves to false.

    Type Parameters

    • T extends false

      Boolean type that must be false

    Produces a compiler error if the provided type is not exactly false.

    type A = AssertFalse< false >;  // ✓
    type B = AssertFalse< true >; // ✗ TS error