-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fix: typescript annotation for server #313
base: master
Are you sure you want to change the base?
Conversation
@sviande Can you please elaborate on that proposed change? What doesn't work for you with the current signature? |
A Server is currently returned by both promises, I'm not sure to really understand the proposed fix. Closing this for now. Feel free to comment would have I overlooked the intent of the PR and let's revisit it together. Cheers! |
This change fix the signature because it's misleading, the code start func doesn't return a server. As you can see in the comment This code resolve without providing the server
|
Oh, you're right!
Hmmm. That's a little more complicated than that.
Duh :-/ Would you still be up to clean up that mess? ;-) |
Two more possible options would also be
The slight issue here is that there's a mix of possible fixes and all of them could potentially be seen as breaking changes from the contract standpoint. I'm not actually sure there's a lot of usage regarding the returned parameter of those @poveden Thoughts? What path do you prefer AND how should we release this? End of support for Node 18 (and potential window for a new major version) is end of April 2025, four months from now. Note: FWIW, my current preferred option would indeed to return a |
PR Checklist
npm test
locally and all tests are passing.PR Description
Fix typescript annotation accordingly to the current behavior