issue: data param in onValid in handleSubmit infers as any when TTransformedValues is a union type #11414
Closed
1 task done
Labels
TS
Typescript related issues
Version Number
7.49.3
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/youthful-chaplygin-4svfw9
Steps to reproduce
/src/App.tsx
fileuseTTransformedValues
inhandleSubmit
(in line 9) you will see that:data
is inferred as anyExpected behaviour
data
should be inferred asForm
(i.e. union type) - the same as inuseOnlyTFieldValues
(line 14)What browsers are you seeing the problem on?
No response
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: