-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(types): support typing QueryKey
and MutationKey
via Register
#8521
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work, thank you 🚀
View your CI Pipeline Execution ↗ for commit 2b07bbe.
☁️ Nx Cloud last updated this comment at |
Hi! I'm autofix.ci, a bot that automatically fixes trivial issues such as code formatting in pull requests. I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:
|
@TkDodo thanks! I've just fixed the failing build, so hopefully a rerun will be green 🤞🏾 |
QueryKey
and MutationKey
via Register
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8521 +/- ##
===========================================
+ Coverage 46.28% 63.04% +16.76%
===========================================
Files 199 135 -64
Lines 7538 4833 -2705
Branches 1722 1354 -368
===========================================
- Hits 3489 3047 -442
+ Misses 3670 1542 -2128
+ Partials 379 244 -135 |
autofix is still failing. please run prettier or allow updates by maintainers so that this can be fixed by the bot! |
ce6952b
to
b4ea0d6
Compare
@TkDodo thanks! annoyingly prettier was unable to find any fixes (at least with how I was running it in my Codespace). I've just allowed maintainer edits, and have pushed a new commit |
Follow-on from #8495
This PR extends the use of the
Register
interface so that it can narrow the type ofQueryKey
andMutationKey
, for situations where users of the library want to enforce a hierarchy of keys at the lowest-level possible.