fielder
Version:
A field-first form library for React and React Native
14 lines (13 loc) • 458 B
TypeScript
import { FormSchemaType } from '../types';
import { ActionHandler } from './util';
/** Unmounts/removes a field to the form. */
export declare type UnmountFieldAction = {
type: 'UNMOUNT_FIELD';
config: UnmountFieldArgs<any>;
};
export declare type UnmountFieldArgs<T extends FormSchemaType> = {
name: keyof T;
destroy?: boolean;
};
/** Unmount of field. */
export declare const doUnmountField: ActionHandler<UnmountFieldAction>;