Describe the bug
Using useMutation as-is without a generic throws errors in Typescript. There are no docs that explain how to useMutation with Typescript and the type definitions aren't clear enough.
To Reproduce
Steps to reproduce the behavior:
useMutation without a generic
- type errors will present themselves
- https://react-query.tanstack.com/typescript#_top has no docs on useMutation
Expected behavior
Expectation would be that there are docs on how to type useMutation and that it doesn't need to be ts-ignored