UNPKG

@cashfarm/plow

Version:

Library for validating input data and parameters

7 lines (6 loc) 233 B
import { IEntity } from './entity'; export declare const IRepositoryOf: symbol; export interface IRepository<TAggregate extends IEntity<TId>, TId> { getById(id: TId): Promise<TAggregate>; save(aggregate: TAggregate): void; }