fluxtuate
Version:
a javascript ES7 library for handling complex data transactions
15 lines (10 loc) • 475 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (target, key, descriptor) {
if (key === undefined) throw new Error("You can't inject values to classes, only to class properties of type function!");
if (typeof descriptor.value === "function") throw new Error("You can only inject values to properties of the class!");
target[_internals.primaryKey] = key;
};
var _internals = require("./_internals");