Conditional type over multiple boolean conditions.
Tuple of boolean conditions
Result if all conditions are true
Result if any condition is false
Evaluates to Then if all conditions in the tuple are true. Otherwise resolves to Else.
Then
true
Else
Empty tuples evaluate to Then.
type A = IfAll< [ true, true ], 'ok', 'fail' >; // 'ok'type B = IfAll< [ true, false ], 'ok', 'fail' >; // 'fail' Copy
type A = IfAll< [ true, true ], 'ok', 'fail' >; // 'ok'type B = IfAll< [ true, false ], 'ok', 'fail' >; // 'fail'
Conditional type over multiple boolean conditions.