UNPKG

sequelize-typescript

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