Conditional type: if the condition C is true, return Do, otherwise return Else.
C
true
Do
Else
If<IsNever<never>, true, false>; // true If<Not<IsNever<never>>, true, false>; // false Copy
If<IsNever<never>, true, false>; // true If<Not<IsNever<never>>, true, false>; // false
Conditional type: if the condition
C
istrue
, returnDo
, otherwise returnElse
.