demeine
Version:
DDDD - Distributed Domain Driven Design
9 lines (8 loc) • 342 B
TypeScript
import { Aggregate } from './Aggregate';
export interface AggregateFactory<T extends Aggregate> {
(id: string): T;
}
export interface AggregateFactoryCreator<T extends Aggregate> {
(): AggregateFactory<T>;
}
export declare function DefaultFactory<T extends Aggregate = Aggregate>(aggregateType?: string): AggregateFactory<T>;