Type Alias IfAnd<AndCondition1, AndCondition2, Then, Else>

IfAnd<AndCondition1, AndCondition2, Then, Else>: AndCondition1 extends true
    ? AndCondition2 extends true
        ? Then
        : Else
    : Else

If both Conditions are true, then return Then, else return Else

Type Parameters

  • AndCondition1 extends boolean
  • AndCondition2 extends boolean
  • Then = true
  • Else = false