UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

12 lines 466 B
import { BaseValidator } from './base'; import type { ArrayValidatorType, ValidationNames, Validator } from '../types'; export declare function array<T>(): ArrayValidator<T>; export declare class ArrayValidator<T> extends BaseValidator<T[]> implements ArrayValidatorType<T> { name: ValidationNames; constructor(); min(length: number): this; max(length: number): this; length(length: number): this; each(validator: Validator<T>): this; unique(): this; }