mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-23 18:29:21 -05:00
11 lines
302 B
TypeScript
11 lines
302 B
TypeScript
import { registerService, getService } from './registry.js';
|
|
import { DataService, DataServiceImpl } from './dataService.js';
|
|
|
|
await registerService('dataService', {
|
|
defaultImpl: DataServiceImpl,
|
|
});
|
|
|
|
export function getDataService(): DataService {
|
|
return getService<DataService>('dataService');
|
|
}
|