-
-
Notifications
You must be signed in to change notification settings - Fork 539
Infer Return Type for select
from useInfiniteQuery
#2169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infer Return Type for select
from useInfiniteQuery
#2169
Conversation
👷 Deploy request for openapi-ts pending review.Visit the deploys page to approve it
|
🦋 Changeset detectedLatest commit: 3c70089 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
78225d2
to
cab51d4
Compare
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.
This looks great, and tests look great too! No notes 🙂. Changeset looks good, so we can release after merge.
Changes
Updates the types for
useInfiniteQuery
to infer the return type from theselect
option, if provided. Adds onto #2105 with recent addition of #2117.Also adds the docs for
useInfiniteQuery
to the navigation in the docs site, it wasn't being linked to, and adds a note about customizing the query param name for pagination.How to Review
See previous PR for the type inference in #2105 and additional test added to the
useInfiniteQuery
suite to check the return type is correctly inferred and functionally sound from useInfiniteQuery.Checklist
docs/
updated (if necessary)pnpm run update:examples
run (only applicable for openapi-typescript)