@olapat/react-useform
Version:
react hook useform controller
10 lines (9 loc) • 423 B
TypeScript
import type { Rules } from './useForm';
export declare const getRequiredMsg: (label: string, local?: "th" | "en") => string;
declare const useCheckValidate: <ValuesType extends {
[key: string]: any;
} = {}>() => (values: any, rules: Rules<ValuesType>) => {
[unit: string]: any;
};
export declare const checkErr: (fieldRules: any, value: any, fieldName: string, values: any) => any;
export default useCheckValidate;