@chevre/domain
Version:
Chevre Domain Library for Node.js
18 lines (17 loc) • 511 B
TypeScript
import type { ProjectRepo } from '../../repo/project';
import type { ReservationRepo } from '../../repo/reservation';
import type { TaskRepo } from '../../repo/task';
export type IAggregateOperation<T> = (repos: {
project: ProjectRepo;
reservation: ReservationRepo;
task: TaskRepo;
}) => Promise<T>;
export declare function aggregate(params: {
project: {
id: string;
};
reservationFor: {
startFrom: Date;
startThrough: Date;
};
}): IAggregateOperation<void>;