Sha256: 78e210e02c0f9ec51c9aad4aa338955ce6ecb9663f65cbeb5894357d7479f7da
Contents?: true
Size: 957 Bytes
Versions: 15
Compression:
Stored size: 957 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _applyDecoratedDescriptor; function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ("value" in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = void 0; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); return null; } return desc; } //# sourceMappingURL=applyDecoratedDescriptor.js.map
Version data entries
15 entries across 15 versions & 1 rubygems