UNPKG

typescript-event-emitter

Version:

Versatile and feature-rich TypeScript library for event management, providing a solid foundation for building event-driven applications in TypeScript.

22 lines (21 loc) 1.02 kB
import { Observable } from 'rxjs'; import { globalEventBus, Option } from './../../index'; import { BaseEventService } from './BaseEventService'; interface GlobalEventBusPublicAPI { emit: typeof globalEventBus.emit; getAllEventHistory: typeof globalEventBus.getAllEventHistory; getGlobalOptions: typeof globalEventBus.getGlobalOptions; getListenerManager: typeof globalEventBus.getListenerManager; getSpecificEventHistory: typeof globalEventBus.getSpecificEventHistory; inspectSubscription: typeof globalEventBus.inspectSubscription; removeSubscription: typeof globalEventBus.removeSubscription; setGlobalOptions: typeof globalEventBus.setGlobalOptions; subscriptions: typeof globalEventBus.subscriptions; on: typeof globalEventBus.on; off: typeof globalEventBus.off; } export declare class GlobalEventBusService extends BaseEventService { fromEvent<T = unknown>(event: string, options?: Option): Observable<T>; get instance(): GlobalEventBusPublicAPI; } export {};