Type Alias If<Condition, Then, Else>

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

Type Parameters

  • Condition extends boolean
  • Then = true
  • Else = false