UNPKG

ff-validator

Version:
15 lines (14 loc) 398 B
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 {};