Skip to content

How to get Fires Tags defined type #3020

@AdamSukma

Description

@AdamSukma

Search Terms

@fires tag type is removed when generating documentation

Problem

Currently I am want to define event that a component fires.

/**
 * Component demo.
 *
 * @fires {CustomEvent<{id: string, source: Element}>} item-click - event when item is clicked.
 */
export class ButtonControlElement extends LitElement {
}

and the result when it is generated is

Image

I need for event type to be defined between {} since I also want to generate custom-element-manifest for my component https://github.com/webcomponents/custom-elements-manifest?tab=readme-ov-file

Expected Result:
{CustomEvent<{id: string, source: Element}>} is also printed in documentation

Suggested Solution

How do you suggest fixing the problem? Do any other tools already do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions