Skip to content

[BUG] description and rawdescription are not extracted when the jsdocs begins with tag for inputs / outputs #1601

Closed

Description

@saharis9988
Overview of the issue

When documenting Angular components with JSDoc, if a component input / output property’s JSDoc comment contains only tags (e.g., @optional, @deprecated, etc.) without any description text, Compodoc generates metadata where both rawdescription and description are undefined or empty for that property.

Operating System, Node.js, npm, compodoc version(s)
Angular configuration, a package.json file in the root folder
Compodoc installed globally or locally ?

locally

If possible sourcecode of the file where it breaks
  /**
   * @optional The number of lines to display per row. This adjusts the row height.
   *
   * The minimum value is 2 lines.
   */
  @Input() numOfLinesToDisplayPerRow = 2;
If possible your terminal logs before the error
Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix

I would expect that the entire JSDoc comment (even if it only has tags) would still be stored in rawdescription (or another dedicated field).
If this is intentional (the jsdoctags array does include the tags correctly), perhaps a separate property should be added to always store the raw JSDoc block.

Activity

  1. added a commit that references this issue on May 23, 2026
    55489d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions