8000 handleChange / handleBlur typings are incorrect · Issue #2471 · jaredpalmer/formik · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
handleChange / handleBlur typings are incorrect #2471
Closed
@hastom

Description

@hastom

🐛 Bug report

Current Behavior

Using handleChange and handleBlur callbacks returned by useFormik hook causes TS error Type void is not assignable to ...

Expected behavior

No error

Suggested solution(s)

Give callbacks explicit typings using types specified for FormikHandlers

Your environment

Software Version(s)
Formik 2.1.4
React 16.13.1
TypeScript 3.8.3
Browser -
npm/Yarn -
Operating System -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0