Skip to content

Cannot add or modify JSDoc with custom transformers #15639

Closed
@kimamula

Description

@kimamula

TypeScript Version: 2.3.2

It is likely that TypeScript basically emits comments as they were in the original TypeScript code and any mutation of ts.JSDoc objects with custom transformers is ignored.

Though it is possible to add comments by ts.addSyntheticLeadingComment() or ts.addSyntheticTrailingComment(), they cannot be used to add JSDoc style comments.

Is it possible to enable adding or modifying JSDoc with custom transformers?
This feature would be helpful for solving the problem like #10, for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions