@bodil/dom
    Preparing search index...

    Interface DeclareEvents<Events>

    An interface a type can extend to associate a map of event names to event types with itself, in the style of HTMLElementEventMap et al. This allows the type system to discover the events available for a specific EventTarget descendant.

    If you need to implement this for a class you're defining, you need to add __events!: MyEventMap as a property on the class.

    Type Parameters

    • Events

    Hierarchy