Skip to content

Commit

Permalink
removed excplicit return types that were inferable by typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadmehrabi committed May 10, 2021
1 parent 7a4827a commit 39067f1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/formik/src/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ export type UseFieldProps<V = any> = {
* Returns Formik field value updater function
* @public
*/
export function useSetFieldValue<Values>(): FormikContextType<
Values
>['setFieldValue'] {
export function useSetFieldValue<Values>() {
return useFormikContextSelector<
Values,
FormikContextType<Values>['setFieldValue']
Expand All @@ -81,9 +79,7 @@ export function useSetFieldValue<Values>(): FormikContextType<
* Returns Formik field touched updater function
* @public
*/
export function useSetFieldTouched<Values>(): FormikContextType<
Values
>['setFieldTouched'] {
export function useSetFieldTouched<Values>() {
return useFormikContextSelector<
Values,
FormikContextType<Values>['setFieldTouched']
Expand Down

0 comments on commit 39067f1

Please sign in to comment.