mframejs
Version:
simple framework
19 lines • 615 B
JavaScript
import { CONSTANTS } from '../interface/exported';
export function computedFrom(...options) {
let _options;
_options = options;
return function (target, key) {
if (!target[CONSTANTS.META_COMPUTEDFROM]) {
target[CONSTANTS.META_COMPUTEDFROM] = {};
}
if (!target[CONSTANTS.META_COMPUTEDFROM][key]) {
target[CONSTANTS.META_COMPUTEDFROM][key] = {
key: key,
attributes: _options || {
attributes: []
}
};
}
};
}
//# sourceMappingURL=computedFrom.js.map