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

@truhlikfredy

Description

@truhlikfredy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions