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

15 lines (14 loc) 648 B
import { OnOptions } from 'eventemitter2'; export interface OnEventOptions extends OnOptions { rethrow?: boolean; } export interface OnEvent { event: string; options?: OnEventOptions; } export declare const emitterKey = "nest-event:emitter"; export declare const fromKey: string; export declare const onKey: string; export declare const Emitter: (emitter?: string) => import("@nestjs/common").CustomDecorator<string>; export declare const From: (emitter: string) => import("@nestjs/common").CustomDecorator<string>; export declare const On: (event: string, options?: OnEventOptions) => import("@nestjs/common").CustomDecorator<string>;