@nestjs-cqrs-eventsourcing/core
Version:
Event sourcing for nestjs CQRS
14 lines (13 loc) • 538 B
TypeScript
import { EventstoreProvider } from '@nestjs-cqrs-eventsourcing/core';
export declare abstract class BaseRepository {
protected readonly aggregate: string;
protected readonly eventStore: EventstoreProvider;
protected readonly options?: {
startWithValue?: number;
};
protected constructor(aggregate: string, eventStore: EventstoreProvider, options?: {
startWithValue?: number;
});
getSequenceName(repoName: string): string;
abstract getNextId(): Promise<string | number> | string | number;
}