UNPKG

pure-parse

Version:

Strongly typed validation library that decouples type aliases from validation logic

6 lines (5 loc) 273 B
import { Guard } from './Guard'; /** * @param guards an array of guards. Each guard validates the corresponding element in the data tuple. */ export declare const tupleGuard: <T extends readonly [...unknown[]]>(guards: [...{ [K in keyof T]: Guard<T[K]>; }]) => Guard<T>;