1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.IsBefore = void 0;
|
4 | const attribute_service_1 = require("../model/column/attribute-service");
|
5 | /**
|
6 | * Only allow date strings before a specific date
|
7 | */
|
8 | function IsBefore(date) {
|
9 | return (target, propertyName) => (0, attribute_service_1.addAttributeOptions)(target, propertyName, {
|
10 | validate: {
|
11 | isBefore: date,
|
12 | },
|
13 | });
|
14 | }
|
15 | exports.IsBefore = IsBefore;
|
16 | //# sourceMappingURL=is-before.js.map |
\ | No newline at end of file |