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