UNPKG

@inversifyjs/core

Version:

InversifyJs core package

20 lines 650 B
import { cloneBindingCache } from './cloneBindingCache.js'; /** * Clones a DynamicValueBinding */ export function cloneDynamicValueBinding(binding) { return { cache: cloneBindingCache(binding.cache), id: binding.id, isSatisfiedBy: binding.isSatisfiedBy, moduleId: binding.moduleId, onActivation: binding.onActivation, onDeactivation: binding.onDeactivation, scope: binding.scope, serviceIdentifier: binding.serviceIdentifier, type: binding.type, // The value is not cloned value: binding.value, }; } //# sourceMappingURL=cloneDynamicValueBinding.js.map