Edmund Hung

Results 72 comments of Edmund Hung

It looks like Typescript is trying to infer the types from both `defaultValue` and `onValidate`. I think this will be best solved by the [NoInfer](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4-beta/#the-noinfer-utility-type) which is still on beta...

Typescript seems to infer the type correctly if you spread over the `defaultValues` instead of passing it to the `useForm` hook directly: ```tsx const [form, fields] = useForm({ lastResult, onValidate({...