-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
fix(openapi-react-query): Fix typing of queryOptions #1952
Conversation
🦋 Changeset detectedLatest commit: bbaf5ac 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 |
Tests are failing because I bumped |
a731b65
to
2a4307b
Compare
The tests are failing because the lockfile is out of date. Could you run |
4f88517
to
27ebf7c
Compare
Done. |
Thanks! This PR looks great, and the tests seem to be passing. Could you add a |
- Adds `NoInfer` to function return type because starting from TypeScript 5.5 it can affect inference. For example: const f = <T,>(x: NoInfer<T>) => x; const x: number = f('foo'); ^^^^^ expects number Previous versions could not infer `T` and complained about something like "unknown cannot be assigned to number". This error is not reproducible with `paths` so we test against a minimal paths type. - Excludes `SkipToken` (introduced in v5.25) from `queryFn` to be compatible with `useSuspenseQuery`.
27ebf7c
to
bbaf5ac
Compare
Added changeset. |
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.
Thank you!
It should also fix #1946, I just messed up the syntax. Could you please close that? |
Oh yes good catch! I personally can never get the syntax right for closing multiple issues |
Changes
Fixes #1929, #1946. And also fixes an issue with
SkipToken
anduseSuspenseQuery
.How to Review
Added tests that reproduce the bug so if they are correct and green, the linked issues should be fixed.
Checklist