@alextheman/utility - v4.3.5
    Preparing search index...

    Type Alias OptionalOnCondition<Condition, ResolvedTypeIfTrue>

    OptionalOnCondition: Condition extends true
        ? ResolvedTypeIfTrue
        : ResolvedTypeIfTrue
        | undefined

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

    Type Parameters

    • Condition extends boolean

      The condition to check.

    • ResolvedTypeIfTrue

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