UNPKG

nest-events

Version:

Welcome to the Nest Events library! This library provides event handling and emitting capabilities for your [NestJS](https://nestjs.com/) applications. With Nest Events, you can easily manage and trigger events within your application, making it simpler t

9 lines (8 loc) 326 B
import { IEventEmitter } from './definitions'; import { EventBusInitializer } from './initializer'; export declare class EventBus { private readonly module; constructor(module: EventBusInitializer); emitAsync(event: string | symbol, ...args: any[]): Promise<any[]>; emitter(emitter?: string): IEventEmitter; }