@bodil/dom
    Preparing search index...

    Namespace event

    Utility types for DOM events.

    Interfaces

    DeclareEvents

    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.

    Type Aliases

    EventMapFor

    Get the Events type associated with a type that extends DeclareEvents<Events>.

    ExtractEventMap

    Get the Events type associated with a type that extends DeclareEvents<Events>.

    Functions

    eventListener

    Attach an event listener to an EventTarget and return a Disposable which will remove the listener when disposed.