fielder
Version:
A field-first form library for React and React Native
11 lines (10 loc) • 363 B
TypeScript
import { FormSchemaType, ValidationTrigger } from '../types';
/** Trigger validation to be called on a given field. */
export declare type ValidateFieldAction = {
type: 'VALIDATE_FIELD';
config: ValidateFieldArgs<any>;
};
export declare type ValidateFieldArgs<T extends FormSchemaType> = {
name: keyof T;
trigger?: ValidationTrigger;
};