apollo-client icon indicating copy to clipboard operation
apollo-client copied to clipboard

Add arg type to RefetchQueriesFunction

Open fikrikarim opened this issue 3 years ago • 1 comments

RefetchQueriesFunction has a FetchResult type on the documentation, but the type is any on the code right now.

This PR add the type to RefetchQueriesFunction according to the documentation and the source code.

If the type is wrong or there is something I need to change, just let me know and I'll try to update it.

Checklist:

  • [ ] ~If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)~
  • [ ] ~Make sure all of the significant new logic is covered by tests~

fikrikarim avatar Mar 16 '21 13:03 fikrikarim

Hi @fikrikarim 👋🏻 thanks so much for submitting this enhancement! I believe this would be appropriate to consider merging into our 4.0 release given that it's potentially breaking for some users (in a healthy way!) Have a great week and thanks for your patience!

bignimbus avatar Sep 12 '22 17:09 bignimbus