Skip to content

TSDocEmitter emits @defaultValue in a weird way #426

@spike-rabbit

Description

@spike-rabbit

When parsing a comment like this:

/** @defaultValue value */

and printing the parsed docComment using TSDocEmitter it will create this output:

/**
 * @defaultvalue
 *
 * value
 */

While this seems to be still working with IDEs it is quite ugly.

I think this can be fixed by using the same handling as with @returns.

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