class-o-mat
Version:
ALPHA VERSION ONLY: class-o-mats will help to create getter-setter functionality with validations that can be attached to a container class for easier coding. Some basic validations are included. class-o-mats also has the ability to store params as bloc
18 lines (13 loc) • 549 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _types = require('../constants/types');
var getterSetter = function getterSetter(ts, key) {
var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _types.NONE;
if (value === _types.NONE) return ts._params[key];
ts._params[key] = value;
return ts;
};
exports.default = getterSetter;
//# sourceMappingURL=getter-setter.js.map