Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

TypeScript constuctors not fully supported #15

Description

The regular constructors work, but the shorthand constructors create issues, input:

class Experiment {

  constructor(public  lines:           string[],
              private alignSymbols:    number,
              private firstSymbolOnly: boolean) {

  }  
}

Will cause the "add doc" command create this:

  class Experiment {
  /**
   * @param  {string[]} publiclines
   * @param  {number}   privatealignSymbols
   * @param  {boolean}  privatefirstSymbolOnly
   */
  constructor(public  lines:           string[],
              private alignSymbols:    number,
              private firstSymbolOnly: boolean) {

  }  
}

Notice the public/private are now part of a field name in the auto-generated documentation.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions