Tools/domain/EventStore.ts
2024-03-10 10:49:36 +01:00

9 lines
250 B
TypeScript

import DomainEvent from "./DomainEvent";
import DomainProjection from "./DomainProjection";
export default interface EventStore {
append(event: DomainEvent<any>): void;
subscribe(projection: DomainProjection): void;
replay(): Promise<void>;
}