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

[TypeScript] Improve set and subscribe API #285

Merged
merged 2 commits into from
Sep 18, 2021

Conversation

bjornstar
Copy link
Member

There is a very small functional change here where we pass the type of the subscription back from the worker with the result.

This allows us to be certain of the type of the value that will be passed to the callback.

Would love some help with the final piece of the puzzle, getting TypeScript to accept actually calling the callback.

@vercel
Copy link

vercel bot commented Sep 16, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pmndrs/use-cannon/AAg4avCehFogKuwtFSy4E53jtYEX
✅ Preview: https://use-cannon-git-fork-bjornstar-subscribe-any-pmndrs.vercel.app

@bjornstar bjornstar merged commit 27e41f1 into pmndrs:master Sep 18, 2021
@bjornstar bjornstar deleted the subscribe-any branch September 18, 2021 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant