@mbc-cqrs-serverless/core
Version:
CQRS and event base core
18 lines (17 loc) • 783 B
TypeScript
import { OnModuleInit } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { ModuleRef } from '@nestjs/core';
import { IEventHandler } from '../../interfaces';
import { ExplorerService } from '../../services';
import { NotificationEvent } from './notification.event';
export declare class NotificationEventHandler implements IEventHandler<NotificationEvent>, OnModuleInit {
private readonly moduleRef;
private readonly explorerService;
private readonly config;
private readonly logger;
private readonly transports;
private readonly activeTransportNames;
constructor(moduleRef: ModuleRef, explorerService: ExplorerService, config: ConfigService);
onModuleInit(): void;
execute(event: NotificationEvent): Promise<void>;
}