UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

13 lines 614 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.inject = void 0; const enums_1 = require("../types/enums"); function inject(target, propertyKey) { var _a; const dependency = Reflect.getMetadata('design:type', target, propertyKey); const dependencies = (_a = Reflect.getMetadata(enums_1.REFLECT_METADATA.DEPENDENCIES, target)) !== null && _a !== void 0 ? _a : []; dependencies.push({ propertyKey, dependency }); Reflect.defineMetadata(enums_1.REFLECT_METADATA.DEPENDENCIES, dependencies, target); } exports.inject = inject; //# sourceMappingURL=inject.js.map