Tools/domain/EventStore.ts

9 lines
250 B
TypeScript
Raw Normal View History

2024-03-10 09:49:36 +00:00
import DomainEvent from "./DomainEvent";
import DomainProjection from "./DomainProjection";
export default interface EventStore {
append(event: DomainEvent<any>): void;
subscribe(projection: DomainProjection): void;
replay(): Promise<void>;
}