function someValidator<T, A>(...validators): (x) => x is GuardToType<A[number]>
Creates a validator that the given unknown matches at least one of the given validators
Type parameters
Type parameter |
---|
T |
A extends (p1 ) => p1 is T [] |
Parameters
Parameter | Type |
---|---|
...validators | A |
Returns
Function
Parameters
Parameter | Type |
---|---|
x | any |
Returns
x is GuardToType<A[number]>