apollo-client
apollo-client copied to clipboard
Add arg type to RefetchQueriesFunction
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~
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!