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