Spaces:
Sleeping
Sleeping
Download src/interfaces/core/IServiceFactory.ts from lamsaoganh/teamta: direct link, hf CLI and curl.
- Browser
- Download file 627 Bytes
-
https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/core/IServiceFactory.ts
- Command line
-
hf download hf://spaces/lamsaoganh/teamta/src/interfaces/core/IServiceFactory.ts
-
curl -L -o IServiceFactory.ts https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/core/IServiceFactory.ts
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; | |
| }; |