@udraft/core
Version:
uDraft is a language and stack agnostic code-generation tool that simplifies full-stack development by converting a single YAML file into code for rapid development.
29 lines • 727 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.UAttribute = void 0;
class UAttribute {
constructor(name, value) {
this._name = name;
this._value = value;
}
$name() {
return this._name;
}
$value() {
var _a, _b;
return (_b = (_a = this._value) !== null && _a !== void 0 ? _a : this._defaultValue) !== null && _b !== void 0 ? _b : null;
}
$default() {
return this._defaultValue;
}
default(value) {
this._defaultValue = value;
return this;
}
value(value) {
this._value = value;
return this;
}
}
exports.UAttribute = UAttribute;
//# sourceMappingURL=attribute.js.map
;