SB-6.1-PRE
This commit is contained in:
1 parent
690169a409
commit
358a25f522
3760 files changed
+300059
-36
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
define(["require", "exports", "../constants/error_msgs", "../constants/metadata_keys"], function (require, exports, ERRORS_MSGS, METADATA_KEY) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function injectable() {
|
||||
return function (target) {
|
||||
if (Reflect.hasOwnMetadata(METADATA_KEY.PARAM_TYPES, target)) {
|
||||
throw new Error(ERRORS_MSGS.DUPLICATED_INJECTABLE_DECORATOR);
|
||||
}
|
||||
var types = Reflect.getMetadata(METADATA_KEY.DESIGN_PARAM_TYPES, target) || [];
|
||||
Reflect.defineMetadata(METADATA_KEY.PARAM_TYPES, types, target);
|
||||
return target;
|
||||
};
|
||||
}
|
||||
exports.injectable = injectable;
|
||||
});
|
||||
Reference in new issue
Block a user