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

fix: remove jsdoc types and improve internal types #1356

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

talentlessguy
Copy link
Contributor

should fix #1355

*/
close() {
close(): Promise<void> | undefined {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@benmccann this._closePromise may be undefined, should we return undefined as well, or use a non-null assertion?

Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't get to look at this before it was merged, but to answer your question I think Promise<void> is the correct return type here and we should not return undefined. I've opened a new issue to discuss it: #1357

@paulmillr paulmillr merged commit 9b15d99 into paulmillr:main Sep 18, 2024
9 of 10 checks passed
@talentlessguy talentlessguy deleted the remove-type-fromjsdoc branch September 18, 2024 21:08
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.

v4: types and jsdoc do not align
3 participants