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

Type Parameters

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