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 once #929

Merged
merged 2 commits into from
Feb 1, 2022
Merged

Properly type once #929

merged 2 commits into from
Feb 1, 2022

Conversation

ericanderson
Copy link
Contributor

@ericanderson ericanderson commented Jan 23, 2022

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.

@Supereg Supereg changed the base branch from master to beta-0.10.1 January 26, 2022 22:00
Supereg
Supereg previously approved these changes Jan 26, 2022
Copy link
Member

@Supereg Supereg left a 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 🚀

@Supereg Supereg enabled auto-merge (squash) January 26, 2022 22:01
@coveralls
Copy link

coveralls commented Jan 26, 2022

Pull Request Test Coverage Report for Build 1780910472

  • 4 of 10 (40.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 51.832%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/lib/HAPServer.ts 0 6 0.0%
Totals Coverage Status
Change from base Build 1753227310: 0.0%
Covered Lines: 5712
Relevant Lines: 10068

💛 - Coveralls

auto-merge was automatically disabled February 1, 2022 21:56

Head branch was pushed to by a user without write access

Copy link
Member

@Supereg Supereg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks 👍

@Supereg Supereg merged commit b1df0a3 into homebridge:beta-0.10.1 Feb 1, 2022
@ericanderson ericanderson deleted the fix-once branch February 1, 2022 23:51
@ericanderson
Copy link
Contributor Author

@Supereg Thanks! When does it ship so I can update homebridge/homebridge#3072

@Supereg
Copy link
Member

Supereg commented Feb 1, 2022

Currently, we still have some improvements to the avahi advertiser planned for 0.10.1 release, see 0.10.1. But no time frame on that yet.

koush pushed a commit to koush/HAP-NodeJS that referenced this pull request Jun 28, 2022
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.

3 participants