UNPKG

@agile-ts/multieditor

Version:

Simple Form Manager for UI-Frameworks

19 lines (18 loc) 673 B
import { ValidationMethodInterface, Validator } from '../../validator'; /** * Returns a Validator created based on the specified Agile validation methods. * * @param validationSchemaParts - Agile Validation methods */ export declare function agileResolver(...validationSchemaParts: (ValidationMethodObjectInterface | (() => ValidationMethodObjectInterface))[]): Validator; export interface ValidationMethodObjectInterface<DataType = any> { /** * Key/name identifier of the specified validation method. * @default randomly generated key */ key?: string; /** * Validation method. */ method: ValidationMethodInterface<DataType>; }