import type EventSourcedAggregateRoot from "../AggregateRoot"; import type { Identity } from "../AggregateRoot"; export default interface IRepository { save(aggregateRoot: T): Promise; load(aggregateRootId: Identity): Promise; }