UNPKG

@inversifyjs/core

Version:

InversifyJs core package

19 lines 630 B
import { cloneBindingCache } from './cloneBindingCache.js'; /** * Clones an InstanceBinding */ export function cloneInstanceBinding(binding) { return { cache: cloneBindingCache(binding.cache), id: binding.id, implementationType: binding.implementationType, isSatisfiedBy: binding.isSatisfiedBy, moduleId: binding.moduleId, onActivation: binding.onActivation, onDeactivation: binding.onDeactivation, scope: binding.scope, serviceIdentifier: binding.serviceIdentifier, type: binding.type, }; } //# sourceMappingURL=cloneInstanceBinding.js.map