import { ContainerModule, interfaces } from 'inversify'; import { SERVER_TYPES } from 'common/server'; import { FileInfoProxyService } from '@container-stack/file-info-core/index.server'; /** * Proxy (client-side) container bindings for file-info module. * Only binds proxy implementations used by Moleculer client runtime. */ export const externalContainerModule: (settings) => interfaces.ContainerModule = () => new ContainerModule((bind: interfaces.Bind) => { // Bind FileInfo proxy to the IFileInfoService token bind(SERVER_TYPES.FileInfoService).to(FileInfoProxyService).inSingletonScope(); });