Type Alias EventDescriptorFor<TN, EN>

EventDescriptorFor: {
    listener: EventListenerFor<TN, EN>;
    options: AddEventListenerOptions;
}

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

Type Parameters

  • TN extends TagName

    Tag name of the associated Element.

  • EN extends EventNameFor<TN>

    Name of the Event that listener is associated with.

Type declaration