Skip to content

There is no TS type for vaadin-contextmenu event #1969

@Haprog

Description

@Haprog

As a developer when using TypeScript I want to be able to easily discover which event type I should use for an event handler when binding to @vaadin-contextmenu. There should probably be a new event type for it and it should specify the type of the detail object too.

See:

Would also be great if you could specify the type of event.currentTarget via generics to make this kind of usage simpler (if possible) so that the user would not need to do so much casting (with as):

Related: #1015

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions