UNPKG

nestjs-event-sourcing-lib

Version:

A comprehensive Event Sourcing and CQRS library for NestJS applications

9 lines 575 B
export interface AggregateMetadata { name: string; eventStore?: string; snapshotFrequency?: number; } /** * Key for aggregate metadata */ export declare const AGGREGATE_METADATA: unique symbol; /** * Decorator to mark class as aggregate */ export declare function AggregateRoot(metadata?: Partial<AggregateMetadata>): <T extends new (...args: any[]) => any>(constructor: T) => T; /** * Function to get aggregate metadata */ export declare function getAggregateMetadata(target: any): AggregateMetadata | undefined; //# sourceMappingURL=aggregate.decorator.d.ts.map