UNPKG

sequelize-typescript

Version:
16 lines 451 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IsDate = void 0; const attribute_service_1 = require("../model/column/attribute-service"); /** * Only allow date strings */ function IsDate(target, propertyName) { (0, attribute_service_1.addAttributeOptions)(target, propertyName, { validate: { isDate: true, }, }); } exports.IsDate = IsDate; //# sourceMappingURL=is-date.js.map