Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
refactor(useForm): remove un-necessary type
Browse files Browse the repository at this point in the history
  • Loading branch information
wellyshen committed Nov 7, 2020
1 parent 70e0478 commit f3b1d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ const useForm = <V extends FormValues = FormValues>({

const getOptions = useCallback(
() => ({
getFormState: ((path: string, watch = false) =>
getFormState: ((path, watch = false) =>
getFormState(path, watch)) as GetFormState,
setErrors,
setFieldError,
Expand Down

0 comments on commit f3b1d23

Please sign in to comment.