Files
blog/node_modules/cssstyle/lib/utils/propertyDescriptors.js
2025-07-16 16:30:56 +00:00

17 lines
356 B
JavaScript

"use strict";
const prepareValue = require("../parsers").prepareValue;
module.exports.getPropertyDescriptor = function getPropertyDescriptor(property) {
return {
set(v) {
this._setProperty(property, prepareValue(v));
},
get() {
return this.getPropertyValue(property);
},
enumerable: true,
configurable: true
};
};