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.
boolean
true
false
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).
If
type-fest
type-checks.ts
@augment-vir/common
An if-else-like type that resolves depending on whether the given
booleantype istrueorfalse. Returns the else branch when the given type isnever.Copied from the
Iftype in thetype-festpackage so that this package's public types do not depend ontype-fest(see the note intype-checks.ts).