tupleValidator

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

ParameterType
...tupleValidatorsV

Returns

Function

Parameters

ParameterType
xany

Returns

x is { [key in string | number | symbol]: GuardToType<V[key<key>]> }