augment-vir - v32.2.2
    Preparing search index...

    Type Alias If<Type, IfBranch, ElseBranch>

    If: IsNever<Type> extends true
        ? ElseBranch
        : Type extends true ? IfBranch : ElseBranch

    An if-else-like type that resolves depending on whether the given boolean type is true or false. Returns the else branch when the given type is never.

    Copied from the If type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters

    • Type extends boolean
    • IfBranch
    • ElseBranch