9 lines
250 B
TypeScript
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>;
|
|
}
|