@squareboat/nest-events
Version:
The event listener package for your NestJS Applications
5 lines (4 loc) • 307 B
TypeScript
import "reflect-metadata";
import { GenericClass } from "./interfaces";
export declare function Event(name?: string): (target: GenericClass) => void;
export declare function ListensTo(event: string | GenericClass): (target: Record<string, any>, propertyKey: string, descriptor: PropertyDescriptor) => void;