Closed NagaiKoki closed 1 year ago
We can fix this, but it's probably also better to not check types that aren't yours with https://www.typescriptlang.org/tsconfig#skipLibCheck
I face this issue with skipLibCheck
enabled.
Fixed in https://github.com/jaredpalmer/formik/releases/tag/formik%402.4.1, thanks for contributing!
@probablyup Thank you!
Bug report
The following Eslint error appeared in the
setFieldValue
function when updating to version 2.3.2 of formik.When I look at the
FormikHelpers
types, though, they were defined as follows,However, looking at the implementation, I think the correct type is
Is this type correct?
Current Behavior
Expected behavior
Reproducible example
formik.setFieldError
and eslint @typescript-eslint/unbound-method get enabledSuggested solution(s)
Additional context
Your environment