tupleGuard()
ts
function tupleGuard<T>(guards): Guard<T>
Type Parameters
Type Parameter |
---|
T extends readonly unknown [] |
Parameters
Parameter | Type | Description |
---|---|---|
guards | [...{ [K in string | number | symbol]: Guard<T[K<K>]> }[]] | an array of guards. Each guard validates the corresponding element in the data tuple. |
Returns
Guard
<T
>