UNPKG

read-gedcom

Version:
25 lines 704 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.enumerable = void 0; /** * This annotation controls the enumerability of a property. * @param value */ const enumerable = (value) => // eslint-disable-next-line (target, prop, descriptor) => { if (descriptor) { descriptor.enumerable = value; } else { const propSymbol = Symbol(prop); Object.defineProperty(target, prop, { configurable: true, enumerable: value, get() { return this[propSymbol]; }, set(value) { this[propSymbol] = value; }, }); } }; exports.enumerable = enumerable; //# sourceMappingURL=decorators.js.map