Type Alias IfElse<Cond, Then, Else>

IfElse<Cond, Then, Else>: IfExtends<Cond, false, Else, Then>

If Cond is true, return Then, otherwise return Else

Type Parameters

  • Cond extends boolean
  • Then
  • Else