Replies: 1 comment 2 replies
-
try this: res.data <--- will be ResBody |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i want to figure out how i can infer return type of mutation function.
I have a signin function , it returns type AuthResponse.
i have a custom useAppMuattion hook
and here is usage of this hook:
but my axios function already returning type AuthResponse, and here in signin hook, i need to pass in again, i tried ReturnType it doesnt work, maybe someone have any ideas to work around it ?
Beta Was this translation helpful? Give feedback.
All reactions