@commodo/fields
Version:
Enables defining rich data models by decorating function instances with specified model fields. Additionally, it adds `populate` and `validate` methods, for populating model instances with data, and then validating it, respectively.
18 lines (14 loc) • 306 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const hasFields = value => {
if (value && value.__withFields) {
return true;
}
return false;
};
var _default = hasFields;
exports.default = _default;
//# sourceMappingURL=hasFields.js.map