@goparrot/pubsub-event-bus
Version:
NestJS EventBus extension for RabbitMQ PubSub
12 lines (11 loc) • 581 B
TypeScript
import type { Type } from '@nestjs/common';
import type { IPubsubEventHandlerOptions } from '../decorator';
import type { AbstractPubsubHandler } from './AbstractPubsubHandler';
import type { AbstractSubscriptionEvent } from './AbstractSubscriptionEvent';
import type { IEventWrapper } from './IEventWrapper';
export interface IHandlerWrapper<T extends AbstractSubscriptionEvent<any> = AbstractSubscriptionEvent<any>> {
handler: Type<AbstractPubsubHandler<T>>;
eventWrappers: IEventWrapper<T>[];
options: Omit<IPubsubEventHandlerOptions, 'queue'>;
queue: string;
}