UNPKG

@inversifyjs/core

Version:

InversifyJs core package

19 lines 604 B
import { cloneBindingCache } from './cloneBindingCache.js'; /** * Clones a FactoryBinding */ export function cloneFactoryBinding(binding) { return { cache: cloneBindingCache(binding.cache), factory: binding.factory, id: binding.id, isSatisfiedBy: binding.isSatisfiedBy, moduleId: binding.moduleId, onActivation: binding.onActivation, onDeactivation: binding.onDeactivation, scope: binding.scope, serviceIdentifier: binding.serviceIdentifier, type: binding.type, }; } //# sourceMappingURL=cloneFactoryBinding.js.map