Using typescript - How do I set a custom type for useMutation?
I want my useMutation to contain it's regular mutate, inLoading and others but I also want it to contain percentage. How can I set the type?
This does not work, I get

5 Replies
rare-sapphireOP•14mo ago
Any help here please?
ambitious-aqua•14mo ago
Show a typescript playground please
rare-sapphireOP•14mo ago
Already figured it out. Thank you
afraid-scarlet•14mo ago
Provide the solutions for others then please… that's the decent thing to do
rare-sapphireOP•14mo ago
Thing is, the answer does not even make any sense to me, so I'm still trying to understand it before posting it.
So I post with an explanation