UNPKG

fielder

Version:

A field-first form library for React and React Native

13 lines (10 loc) 331 B
import { FormSchemaType, ValidationTrigger } from '../types'; /** Trigger validation to be called on a given field. */ export type ValidateFieldAction = { type: 'VALIDATE_FIELD'; config: ValidateFieldArgs<any>; }; export type ValidateFieldArgs<T extends FormSchemaType> = { name: keyof T; trigger?: ValidationTrigger; };