sequelize-typescript
Version:
Decorators and some other features for sequelize
15 lines • 512 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Validate = void 0;
const attribute_service_1 = require("../model/column/attribute-service");
/**
* Sets validation options for annotated field
*/
function Validate(options) {
options = Object.assign({}, options);
return (target, propertyName) => (0, attribute_service_1.addAttributeOptions)(target, propertyName, {
validate: options,
});
}
exports.Validate = Validate;
//# sourceMappingURL=validate.js.map
;