-
-
Notifications
You must be signed in to change notification settings - Fork 630
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 once #929
Properly type once #929
Conversation
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.
Thanks for improving the typing 🚀
Pull Request Test Coverage Report for Build 1780910472
💛 - Coveralls |
Head branch was pushed to by a user without write access
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.
thanks 👍
@Supereg Thanks! When does it ship so I can update homebridge/homebridge#3072 |
Currently, we still have some improvements to the |
Noticed in homebridge/homebridge that using once() required the inner function to explicitly typed while returning any. So no type inference and more importantly potential bugs.
Easiest way to see the effect is on TS playground.