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

7 lines (6 loc) 328 B
import { ConstructorOptions, EventEmitter2 } from 'eventemitter2'; export type IEventEmitter = Pick<EventEmitter2, 'emitAsync' | 'on' | 'off'>; export declare const Options: unique symbol; export declare class DefaultEventEmitter extends EventEmitter2 implements IEventEmitter { constructor(options?: ConstructorOptions); }