UNPKG

ts-valid8

Version:

A next-generation TypeScript validation library with advanced features

8 lines 462 B
import { SchemaPlugin } from '../core/types'; type CrossfieldValidator<T, U> = ((value: T, dependentValue: U) => boolean) | ((value: T, dependentValues: Record<string, any>) => boolean); /** * Creates a plugin that adds cross-field validation capabilities */ export declare function crossfield<T, U = any>(dependsOn: string | string[], validator: CrossfieldValidator<T, U>, message: string): SchemaPlugin<T>; export {}; //# sourceMappingURL=crossfield.d.ts.map