@jems/di
Version:
An implementation of IoC pattern based on dependency injection that allows you to granulate and decouple your libraries or applications. Wrote using SOLID principles and a variety OOP patterns implementations.
13 lines (12 loc) • 484 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function InjecteIntoTypes(resolutionContext, dependencyMetadata) {
var expectedFunctions = [];
for (var _i = 2; _i < arguments.length; _i++) {
expectedFunctions[_i - 2] = arguments[_i];
}
return !!expectedFunctions.find(function (expectedFunction) {
return resolutionContext.targetResolutionStack.indexOf(expectedFunction) >= 0;
});
}
exports.default = InjecteIntoTypes;