Type Alias IfOr<OrCondition1, OrCondition2, Then, Else>

IfOr<OrCondition1, OrCondition2, Then, Else>: OrCondition1 extends true
    ? Then
    : OrCondition2 extends true
        ? Then
        : Else

If either Condition is true, then return Then, else return Else

Type Parameters

  • OrCondition1 extends boolean
  • OrCondition2 extends boolean
  • Then = true
  • Else = false