Skip to content
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

Properly type useQuery #2361

Open
infomiho opened this issue Oct 28, 2024 · 0 comments
Open

Properly type useQuery #2361

infomiho opened this issue Oct 28, 2024 · 0 comments
Labels
shouldfix We should do/fix this at some point

Comments

@infomiho
Copy link
Contributor

infomiho commented Oct 28, 2024

For users to get benefits of type auto-complete in their IDE, we should properly type the options param of our useQuery helper:

Also, useQuery's type says that the payload is always optional (but this actually depends on the operation). We should fix that too

@infomiho infomiho added the shouldfix We should do/fix this at some point label Oct 28, 2024
@sodic sodic changed the title Type the useQuery's options param instead of using any Properly type useQuery Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
shouldfix We should do/fix this at some point
Projects
None yet
Development

No branches or pull requests

1 participant