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
genetic-orangeOP•11mo ago
Any help here please?
solid-orange•11mo ago
Show a typescript playground please
genetic-orangeOP•11mo ago
Already figured it out. Thank you
protestant-coral•11mo ago
Provide the solutions for others then please… that's the decent thing to do
genetic-orangeOP•11mo 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