UNPKG

@logistically/events-nestjs

Version:

NestJS integration for @logistically/events v3 - Event-driven architecture with Redis Streams

19 lines (18 loc) 602 B
export declare const AUTO_REGISTER_EVENTS_METADATA = "auto_register_events"; export interface AutoRegisterEventsOptions { enabled: boolean; priority?: number; } /** * Decorator to mark a service for automatic event handler registration * This will automatically discover and register all @AutoEventHandler methods * * USAGE: * @Injectable() * @AutoEvents() * export class MyService { * // No need to implement OnModuleInit! * // The decorator handles everything automatically * } */ export declare function AutoEvents(options?: AutoRegisterEventsOptions): (target: any) => void;