-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
net.createServer options are not correctly described. #44298
Comments
VoltrexKeyva
added
doc
Issues and PRs related to the documentations.
net
Issues and PRs related to the net subsystem.
labels
Aug 20, 2022
lpinca
added a commit
to lpinca/node
that referenced
this issue
Aug 21, 2022
8 tasks
lpinca
added a commit
to lpinca/node
that referenced
this issue
Aug 21, 2022
Fyko
pushed a commit
to Fyko/node
that referenced
this issue
Sep 15, 2022
Fixes: nodejs#44298 PR-URL: nodejs#44326 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com>
guangwong
pushed a commit
to noslate-project/node
that referenced
this issue
Jan 3, 2023
Fixes: nodejs/node#44298 PR-URL: nodejs/node#44326 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com>
guangwong
pushed a commit
to noslate-project/node
that referenced
this issue
Jan 3, 2023
Fixes: nodejs/node#44298 PR-URL: nodejs/node#44326 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The net.createServer documentation indicates that the method takes an options object. The description of the options indicates that there are five possible attributes. The @types/node net declaration of the ServerOpts interface contains only the first two attributes (allowHalfOpen, and pauseOnConnect). Unsurprisingly, attempting to set one of the other options incurs a typescript error. This appears in the 18.7 version of the documentation and earlier.
The text was updated successfully, but these errors were encountered: