UNPKG

lynx-form-x

Version:

LynxFormX is a lightweight and intuitive form library built for the Lynx framework for mobile development. It streamlines form management by automatically binding fields, handling validation, and providing easy-to-use hooks for custom field manipulation—a

8 lines (7 loc) • 611 B
import type { Dispatch } from '@lynx-js/react'; import { type Action } from './formReducer.jsx'; export declare const setIsSubmitting: <T>(dispatch: Dispatch<Action<T>>, isSubmitting: boolean) => void; export declare const setValue: <T>(dispatch: Dispatch<Action<T>>, field: keyof T, value: any) => void; export declare const setError: <T>(dispatch: Dispatch<Action<T>>, field: keyof T, error: any) => void; export declare const setTouched: <T>(dispatch: Dispatch<Action<T>>, field: keyof T, touched: boolean) => void; export declare const reset: <T>(dispatch: Dispatch<Action<T>>, initialValues: any) => void;