someValidator

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

ParameterType
...validatorsA

Returns

Function

Parameters

ParameterType
xany

Returns

x is GuardToType<A[number]>