Skip to content

Commit

Permalink
fixed SetValues type, adding functional variant
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrom committed Apr 16, 2021
1 parent 94b8f22 commit f3bd303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/formik/src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export type SetTouchedFn<Values extends FormikValues> = (
) => Promise<void | FormikErrors<Values>>;

export type SetValuesFn<Values extends FormikValues> = (
values: Values,
values: React.SetStateAction<Values>,
shouldValidate?: boolean | undefined
) => Promise<void | FormikErrors<Values>>;

Expand Down

0 comments on commit f3bd303

Please sign in to comment.