Conditional type helper.
Boolean condition to evaluate
Type returned if the condition is true
true
Type returned if the condition is false (defaults to never)
false
never
Evaluates a boolean condition at the type level and resolves to one of two branches.
type Result = If< true, string, number >; // string Copy
type Result = If< true, string, number >; // string
Conditional type helper.