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

refactor: better useCall hook type inference #9527

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

tien
Copy link

@tien tien commented Jun 2, 2023

Automatically infer return & parameters type from query & derive storage calls.

Caveat

As of now, this doesn’t yet infer typing for .multi, .keys & .entries.

Those can be the next things to improve. Along with useCallMulti.

@tien
Copy link
Author

tien commented Jun 3, 2023

@jacogr big fan of your work, make my life at work a whole lot easier 😄

Hopefully this will make yours easier as well, even by just a little bit 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant