ff-validator
Version:
Customizable validation rules
15 lines (14 loc) • 398 B
TypeScript
import { IValidFn } from './core';
interface IFieldValidatorFn<GValue = any, GAllValues = GValue, GMeta = GValue> {
(
value: GValue,
allValues: {
[p: string]: GAllValues;
},
...meta: GMeta[]
): string | undefined;
}
export default function <GValue = any, GAllValues = GValue, GMeta = GValue>(
rulesList: (IValidFn | null)[]
): IFieldValidatorFn<GValue, GAllValues, GMeta>;
export {};