Repository URL to install this package:
Version:
0.2.0-dev.38 ▾
|
import { FieldPath, RegisterOptions, UseFormProps } from 'react-hook-form';
export default function useMuiHookForm(props: UseFormProps): {
watch: import("react-hook-form").UseFormWatch<import("react-hook-form").FieldValues>;
getValues: import("react-hook-form").UseFormGetValues<import("react-hook-form").FieldValues>;
getFieldState: import("react-hook-form").UseFormGetFieldState<import("react-hook-form").FieldValues>;
setError: import("react-hook-form").UseFormSetError<import("react-hook-form").FieldValues>;
clearErrors: import("react-hook-form").UseFormClearErrors<import("react-hook-form").FieldValues>;
setValue: import("react-hook-form").UseFormSetValue<import("react-hook-form").FieldValues>;
trigger: import("react-hook-form").UseFormTrigger<import("react-hook-form").FieldValues>;
formState: import("react-hook-form").FormState<import("react-hook-form").FieldValues>;
resetField: import("react-hook-form").UseFormResetField<import("react-hook-form").FieldValues>;
reset: import("react-hook-form").UseFormReset<import("react-hook-form").FieldValues>;
handleSubmit: import("react-hook-form").UseFormHandleSubmit<import("react-hook-form").FieldValues>;
unregister: import("react-hook-form").UseFormUnregister<import("react-hook-form").FieldValues>;
control: import("react-hook-form").Control<import("react-hook-form").FieldValues, any>;
setFocus: import("react-hook-form").UseFormSetFocus<import("react-hook-form").FieldValues>;
register: (name: FieldPath<any>, options: RegisterOptions) => {
onChange: import("react-hook-form").ChangeHandler;
onBlur: import("react-hook-form").ChangeHandler;
name: string;
min?: string | number | undefined;
max?: string | number | undefined;
maxLength?: number | undefined;
minLength?: number | undefined;
pattern?: string | undefined;
required?: boolean | undefined;
disabled?: boolean | undefined;
inputRef: import("react-hook-form").RefCallBack;
};
};