Open mau2099 opened 1 week ago
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
maintainer is requiring at least 3 thumbs up here from senior typescript devs, so if you are seeing this, drop your thoughts!
I believe this is great for having strictly typed form schema.
so that way, we can do:
but we can still use former way, so no breaking changes
*Note: changes based on this chart https://teslamotors.github.io/informed/api-reference/fieldState