Spaces:
Sleeping

teamta / src /interfaces /core /IServiceFactory.ts
lamsaoganh's picture
Upload 62 files
1305386 verified
Raw History Blame Contribute Delete
627 Bytes
import { IServiceConfig } from './IServiceRegistry';
import { AggregationCounterAPI } from '../../classes/core/AggregationCounterAPI';
import { IWorkerRegistry } from './IWorkerRegistry';
/**
* Type chuẩn cho tất cả ServiceFactory static methods
* Đảm bảo tất cả factories đều có cùng signature
* Sử dụng object để dễ mở rộng và không phụ thuộc thứ tự tham số
*/
export type ServiceFactoryType = {
createServiceConfig: (dependencies: {
aggregationCounterAPI: AggregationCounterAPI;
workerRegistry: IWorkerRegistry;
}) => IServiceConfig;
};