UNPKG

atikin-universal-validator

Version:

A blazing-fast, zero-dependency validator for frontend and backend JS/TS applications.

11 lines (8 loc) 223 B
export type ValidatorFn = (value: any) => boolean; export type ValidationSchema = { [key: string]: [any, string]; }; export interface ValidationResult { success: boolean; errors: Record<string, string>; }