Reusable API Client

Hi everyone

I am studying the intermediate level of react and now just follow the stage that video explain step by step. In this lesson we learn how to use a APIClient like this:

But when I want to use it in a component I face the unknown error:

mutationfn Error: No overload matches this call.
The last overload gave the following error.
Object literal may only specify known properties, and ‘mutationFn’ does not exist in type ‘readonly unknown’.ts(2769)
useMutation.d.ts(6, 25): The last overload is declared here.

the parameters Error: Parameter implicitly has an ‘any’ type.

I just follow the steps that Mosh toled in the video. I saw that some other students face exact error but knowone mention a solution so if you could help it would be appriciative.