interface Eventing<T> {
    addHandler(eventType: T extends ProviderEvents
        ? ConfigurationChanged
        : ConfigurationChanged, handler: EventHandler<T extends ProviderEvents
        ? ConfigurationChanged
        : ConfigurationChanged>): void;
    addHandler(eventType: T extends ProviderEvents
        ? ClientNotChangeEvents
        : ServerNotChangeEvents, handler: EventHandler<T extends ProviderEvents
        ? ClientNotChangeEvents
        : ServerNotChangeEvents>): void;
    addHandler(eventType: T extends ProviderEvents
        ? ProviderEvents
        : ServerProviderEvents, handler: EventHandler<T extends ProviderEvents
        ? ProviderEvents
        : ServerProviderEvents>): void;
    getHandlers(eventType: T): EventHandler<T>[];
    removeHandler(eventType: T, handler: EventHandler<T>): void;
}

Type Parameters

Hierarchy (view full)

Implemented by

Methods

  • Removes a handler for the given provider event type.

    Parameters

    • eventType: T

      The provider event type to remove the listener for

    • handler: EventHandler<T>

      The handler to remove for the provider event type

    Returns void