Type Alias If<Condition, Then, Else>

If<Condition, Then, Else>: Condition extends true
    ? Then
    : Else

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

Type Parameters

  • Condition extends boolean
  • Then
  • Else