You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The response type of the onSuccess hook is currently unknown and can't be overridden.
I get the following error message in VS Code
Types of parameters 'response' and 'response' are incompatible.
Type 'unknown' is not assignable to type 'LoginResponse'
Describe the solution you'd like
The onSuccess response type should be inferred from the return type of the onSubmit function.
Describe alternatives you've considered
Alternatively an additional type parameter on the createForm function that's unknown or any by default just like the Data type param for the onSubmit function.
The text was updated successfully, but these errors were encountered:
Tried to wrap my head around this. I think inferring the type from onSubmit return type is impossible. But as for that my TS knowledge is a bit limited. So the only way to achieve this might be an additional type param for createForm which could be used as the return type of onSubmit and the response param type of onSuccess.
Is your feature request related to a problem? Please describe.
The response type of the onSuccess hook is currently unknown and can't be overridden.
I get the following error message in VS Code
Describe the solution you'd like
The onSuccess response type should be inferred from the return type of the onSubmit function.
Describe alternatives you've considered
Alternatively an additional type parameter on the createForm function that's unknown or any by default just like the Data type param for the onSubmit function.
The text was updated successfully, but these errors were encountered: