You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The types for the data provider methods aren't generic, and are often written like the following:
Hi @andrico1234 and thanks for the suggestion! We know we have to improve the types around the dataProvider and any help is welcome! Please open a PR so that we can discuss how we do it and iterate.
Is your feature request related to a problem? Please describe.
The types for the data provider methods aren't generic, and are often written like the following:
This means that when I create a function like this:
The type of body is any, even though it's likely I know what the type is at this point.
Describe the solution you'd like
This should be a backward compatible type as the generic defaults to
any
which is existing behaviour.If you're happy for this to go in, I'll be happy to make a PR to update all of the dataProvider method types.
The text was updated successfully, but these errors were encountered: