fielder
Version:
A field-first form library for React and React Native
13 lines (12 loc) • 428 B
TypeScript
import { FormSchemaType } from '../types';
import { ActionHandler } from './util';
/** Sets a field to `hasBlurred`. */
export declare type BlurFieldAction = {
type: 'BLUR_FIELD';
config: BlurFieldArgs<any>;
};
export declare type BlurFieldArgs<T extends FormSchemaType> = {
name: keyof T;
};
/** Triggers a change to the given field. */
export declare const doBlurField: ActionHandler<BlurFieldAction>;