React Cool Form is written in TypeScript, so the library's types will always be up-to-date. When working with TypeScript, we can define a
FormValues type to support the form's values.
We can provide the
FormValues type to the following hooks:
Some folks are asking about the type-safe of a field's name, however we can achieve that via TypeScript's Enums.
🧐 You can dig more useful types of this library to build a strongly typed form.