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
15 lines (14 loc) • 472 B
TypeScript
import { DynamicModule } from '@nestjs/common';
import { ConstructorOptions } from 'eventemitter2';
export interface EventBusModuleOptions extends ConstructorOptions {
/**
* If "true", registers `EventEmitterModule` as a global module.
* See: https://docs.nestjs.com/modules#global-modules
*
* @default true
*/
global?: boolean;
}
export declare class EventBusModule {
static forRoot(options?: EventBusModuleOptions): DynamicModule;
}