function tupleValidator<V>(...tupleValidators): (x) => x is { [key in string | number | symbol]: GuardToType<V[key<key>]> }
Creates a validator for a fixed width array where each entry
in the array can have a separate validator
Type parameters
Type parameter |
---|
V extends (p1 ) => p1 is unknown [] |
Parameters
Parameter | Type |
---|---|
...tupleValidators | V |
Returns
Function
Parameters
Parameter | Type |
---|---|
x | any |
Returns
x is { [key in string | number | symbol]: GuardToType<V[key<key>]> }