Skip to content

Treat constructor method as proper constructor of an object #689

Open
@lrowe

Description

@lrowe

With this minimal class:

/** */
class Foo {
  /** */
  constructor(bar) {
    this.bar = bar;
  }
}

Runningnode_modules/.bin/documentation serve doc.js produces the following output with 4.0.0-beta.18:
image

I would expect the constructor not to be displayed as an instance method and it's parameters included in the instantiation example.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions