informed
informed copied to clipboard
feat: allow add types when we use FormState type
so that way, we can do:
const handleOnSubmit = async ({ values }: FormState<AttendanceDetailsForm>) => {
...
}
but we can still use former way, so no breaking changes
const handleOnSubmit = async ({ values }: FormState) => {
...
}
*Note: changes based on this chart https://teslamotors.github.io/informed/api-reference/fieldState