-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extending data providers in react-admin v3 with typescript #4340
Comments
This is not bug, check the documentation or wait for someone to give you a hand on StackOverflow. |
@fzaninotto First of all, thank you for your answer. Could you briefly explain to me why it is not a bug (or faulty or incomplete documentation) if I took the code from the documentation without any changes and it does not work? |
Sorry, you're right, the documentation is wrong. I'll mark it as a documentation bug. |
Great, thank you very much! |
I'm not sure if this is a bug or a wrong implementation on my part. I have already described the problem in detail on stackoverflow.
For this reason I will give only a shortened description here.
What you were expecting:
I want to extend the simple rest provider with my own update method.
What happened instead:
I get the following error:
Property 'update' does not exist on type '(apiUrl: any, httpClient?: ((url: any, options?: Options | undefined) => Promise<{ status: number; headers: Headers; body: string; json: any; }>) | undefined) => DataProvider'. TS2339
Steps to reproduce:
I followed the steps as explained in the documentation
Environment
The text was updated successfully, but these errors were encountered: