Skip to content

Emitted event type always shown as CustomEvent #78

@peschee

Description

@peschee

I have this piece in my CEM:

          "events": [
            {
              "name": "focus",
              "type": {
                "text": "Event"
              },
              "description": "Emitted when the element has received focus."
            },

The argTypes returned by the helper show CustomEvent<Event> though:

{
    "name": "focus",
    "description": "Emitted when the element has received focus.",
    "control": false,
    "table": {
        "category": "events",
        "type": {
            "summary": "CustomEvent<Event>"
        }
    }
}

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