React-query: Add docs on how to use the types?

Created on 3 Jun 2020  路  2Comments  路  Source: tannerlinsley/react-query

As someone that's relatively new to TS, I've been finding the types included in this library a bit unapproachable since they're not commented on how to use them. For example:

useQuery<arg, arg>()

How does one know what those args do? How do I specify the query result only in a success scenario, etc.

Thanks, love the library!

Most helpful comment

@tannerlinsley perhaps you could leave this open with a "help wanted" label then?

All 2 comments

Types are a great addon to this library, but I do not maintain them personally. Feel free to open a PR to the docs or types to help with this! Thanks!

@tannerlinsley perhaps you could leave this open with a "help wanted" label then?

Was this page helpful?
0 / 5 - 0 ratings