@laserware/dominator
    Preparing search index...

    Type Alias EventDescriptorFor<TN, EN>

    Object with a listener that is called when the corresponding event fires and the options that are passed into addEventListener.

    type EventDescriptorFor<
        TN extends TagName
        | string,
        EN extends EventNameFor<TN>,
    > = {
        listener: EventListenerOrEventListenerObjectFor<TN, EN>;
        options: AddEventListenerOptions;
    }

    Type Parameters

    • TN extends TagName | string

      Tag name of the associated element.

    • EN extends EventNameFor<TN>

      Name of the Event that listener is associated with.

    Index

    Properties

    Properties

    listener: EventListenerOrEventListenerObjectFor<TN, EN>

    Callback fired when the event is fired.

    options: AddEventListenerOptions

    Event listener options object. See MDN documentation for additional details.