UNPKG

mframejs

Version:
19 lines 615 B
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