UNPKG

512 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Validate = void 0;
4const attribute_service_1 = require("../model/column/attribute-service");
5/**
6 * Sets validation options for annotated field
7 */
8function Validate(options) {
9 options = Object.assign({}, options);
10 return (target, propertyName) => (0, attribute_service_1.addAttributeOptions)(target, propertyName, {
11 validate: options,
12 });
13}
14exports.Validate = Validate;
15//# sourceMappingURL=validate.js.map
\No newline at end of file