UNPKG

rc-simple-hook-form

Version:

`useForm` is a powerful and flexible React hook for managing form state, validation, and interactions. It provides a comprehensive solution for handling form inputs with advanced features like state management, validation, and form-level controls.

23 lines (22 loc) 895 B
export declare const isObjEmpty: (obj: any) => boolean; export declare const addData: ({ key, value, ref, targetType, checked, initialize, }: { ref: Record<string, any>; value: any; targetType: string; key: string; checked?: boolean; initialize?: boolean; }) => void; export declare const addObjectData: <T extends Record<string, any>>(refObject: T, name: string, { value, targetType, checked, initialize, }: { value: any; targetType: string; checked?: boolean; initialize?: boolean; }) => T; export declare const createSingleKeyObj: ({ source, target, prefix, }: { target: Record<string, any>; source: Record<string, any>; prefix?: string; }) => Record<string, any>; export declare const getObjectData: (name: String, refObject: Record<string, any>) => any; export declare const getErrorMsg: (defaultMessage: string, msg?: string) => string;