Skip to content

tupleGuard()

ts
function tupleGuard<T>(guards): Guard<T>

Type Parameters

Type Parameter
T extends readonly unknown[]

Parameters

ParameterTypeDescription
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>