@goparrot/pubsub-event-bus
Version:
NestJS EventBus extension for RabbitMQ PubSub
7 lines (6 loc) • 368 B
TypeScript
import type { Type } from '@nestjs/common';
import type { IPubsubEventHandlerOptions } from '../decorator';
import type { AbstractSubscriptionEvent } from './AbstractSubscriptionEvent';
export interface IPubsubEventHandlerMetadata<T extends AbstractSubscriptionEvent<any> = AbstractSubscriptionEvent<any>> extends IPubsubEventHandlerOptions {
events: Type<T>[];
}