UNPKG

guardz

Version:

A simple and lightweight TypeScript type guard library for runtime type validation.

7 lines (6 loc) 326 B
import { TypeGuardFn } from '../typeguards/isType'; import { ValidationResult, ValidationContext } from './validationTypes'; /** * Validate an array and collect per-index validation errors. */ export declare const validateArray: (value: unknown, itemGuard: TypeGuardFn<any>, context: ValidationContext) => ValidationResult;