applyDecoratedDescriptor.js 653 B

123456789
  1. function _applyDecoratedDescriptor(i, e, r, n, l) {
  2. var a = {};
  3. return Object.keys(n).forEach(function (i) {
  4. a[i] = n[i];
  5. }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) {
  6. return n(i, e, r) || r;
  7. }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a;
  8. }
  9. module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;