UNPKG

@dugongjs/nestjs

Version:

9 lines (8 loc) 521 B
import type { EventSourcedAggregateRoot, HandleMessageOptions } from "@dugongjs/core"; export declare const AGGREGATE_DOMAIN_EVENT_CONSUMER_TOKEN: "AGGREGATE_DOMAIN_EVENT_CONSUMER_TOKEN"; export type AggregateDomainEventConsumerMetadata = { aggregateClass: EventSourcedAggregateRoot; consumerName: string; options?: HandleMessageOptions; }; export declare const AggregateDomainEventConsumer: (aggregateClass: EventSourcedAggregateRoot, consumerName: string, options?: HandleMessageOptions) => ClassDecorator;