UNPKG

sequelize-typescript

Version:
16 lines 454 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Max = void 0; const attribute_service_1 = require("../model/column/attribute-service"); /** * Only allow values <= limit */ function Max(limit) { return (target, propertyName) => (0, attribute_service_1.addAttributeOptions)(target, propertyName, { validate: { max: limit, }, }); } exports.Max = Max; //# sourceMappingURL=max.js.map