query icon indicating copy to clipboard operation
query copied to clipboard

Typescript support

Open lukaszfiszer opened this issue 7 years ago • 25 comments

First of all - thanks for great library. It simplified data fetching in my apps by order of magnitude.

The biggest feature I'm missing is Typescript support - to the point I have manually added TS definitions to most part of the API by hand. @tannerlinsley would you be interested in having them added to definitely-typed? AFAIK this is a recommended way of adding typings to projects that are not written in TS.

lukaszfiszer avatar Nov 08 '19 22:11 lukaszfiszer

@JeremiAnastaziak. I'm sorry they're out of date! Unfortunately, that's not my responsibility right now and is one of the reasons that they are 3rd party.

tannerlinsley avatar Mar 24 '20 18:03 tannerlinsley

sure, if u ever plan to add official support, I would love to help

JeremiAnastaziak avatar Mar 24 '20 19:03 JeremiAnastaziak

If the examples provided within the main repo could demonstrate some robust typescript examples that would be fantastic

ghost avatar Mar 26 '20 22:03 ghost

PRs are open!

tannerlinsley avatar Mar 26 '20 23:03 tannerlinsley

FYI - https://github.com/tannerlinsley/react-query/discussions/362

tannerlinsley avatar Apr 16 '20 22:04 tannerlinsley