interface EventSource<EM extends EventMap> {
    addEventListener<E extends string | number | symbol>(event: E, listener: cockpit.EventListener<EM[E]>): void;
    dispatchEvent<E extends string | number | symbol>(event: E, ...args: Parameters<EM[E]>): void;
    removeEventListener<E extends string | number | symbol>(event: E, listener: cockpit.EventListener<EM[E]>): void;
}

Type Parameters

Hierarchy-Diagram

UML class diagram of EventSource
Legend
icon for an interface in the UML class diagram interface
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method

Hierarchy (view full)

Methods

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    Returns void

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    Returns void

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    Returns void