Skip to content

Constructors #2

@avivkeller

Description

@avivkeller

Class constructors are currently not handled distinctly by the theme — they fall through to the generic memberTitle partial and are rendered as regular members. This produces incorrect output for doc-kit.

Expected output

Constructors should be rendered in the Node.js API docs style:

#### `new webpack.Compiler(context, options)`

* `context` {string}
* `options` {WebpackOptionsNormalized}

The heading uses the new ClassName(params) form, and parameters are rendered as a typed list beneath it.


For a class Compiler with a constructor constructor(context: string, options: WebpackOptionsNormalized), the output should be:

#### `new Compiler(context, options)`

For a constructor where all params are optional:

#### `new Stats([options])`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions