@alextheman/utility - v5.10.1
    Preparing search index...

    Type Alias NullableOnCondition<Condition, ResolvedTypeIfTrue>

    NullableOnCondition: Condition extends true
        ? ResolvedTypeIfTrue
        : ResolvedTypeIfTrue
        | null

    Resolves to the given type if the first type is true, otherwise resolves to null

    Type Parameters

    • Condition extends boolean

      The condition to check.

    • ResolvedTypeIfTrue

      The type to resolve to if the condition may be true.