UNPKG

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