Skip to content

net.createServer options are not correctly described. #44298

Closed

Description

@mousseq

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.

Activity

  1. added
    doc
    net
    on Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions