TypeScript Improvement
Before
Calling resetForm
without passing a full state object yielded this TS error:
Type '{ values: { email: string; }; }' is missing the following properties from type 'FormikState<{ email: string; }>': errors, touched, isSubmitting, isValidating, submitCount TS2345
After
No TS error when passing partial state object to resetForm
Commits
- Update type of resetForm to accept Partial
(#1617) fff7c46- added DEV resolution to webpack config for storybook (#1608) 7f493bb