Interface IEventEmitter<EventTypes>

interface IEventEmitter<EventTypes> {
    off(event: EventTypes, handler?: HandlerFn): this;
    on(event: EventTypes, handler: HandlerFn): Unsub;
    once(event: EventTypes, handler: HandlerFn): Unsub;
}

Type Parameters

  • EventTypes extends string = string

Hierarchy

  • IEventEmitter

    Implemented by

    Methods

    Methods