@lakutata/core
Version:
Lakutata Framework Core
18 lines • 1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Configurable = exports.Injectable = exports.Inject = void 0;
const inversify_1 = require("inversify");
Object.defineProperty(exports, "Inject", { enumerable: true, get: function () { return inversify_1.inject; } });
Object.defineProperty(exports, "Injectable", { enumerable: true, get: function () { return inversify_1.injectable; } });
const MetadataKeys_1 = require("../constants/MetadataKeys");
function Configurable() {
return (target, propertyKey) => {
if (!Reflect.getMetadata(MetadataKeys_1.CONFIGURABLE_NAMES, target)) {
Reflect.defineMetadata(MetadataKeys_1.CONFIGURABLE_NAMES, [], target);
}
if (!Reflect.getMetadata(MetadataKeys_1.CONFIGURABLE_NAMES, target).includes(propertyKey))
Reflect.getMetadata(MetadataKeys_1.CONFIGURABLE_NAMES, target).push(propertyKey);
};
}
exports.Configurable = Configurable;
//# sourceMappingURL=DependencyInjection.js.map