react-bfm
Version:
A basic field / form manager for React using hooks
10 lines (9 loc) • 379 B
TypeScript
import { FieldNameType, NamespaceType } from '../common';
/**
* Reset field, but ignoring initial value
*/
export declare const clearField: (namespace: NamespaceType, fieldName: FieldNameType) => void;
/**
* Reset field to default state and setting last provided initial value
*/
export declare const resetField: (namespace: NamespaceType, fieldName: FieldNameType) => void;