sequelize-typescript
Version:
Decorators and some other features for sequelize
16 lines • 462 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsIn = void 0;
const attribute_service_1 = require("../model/column/attribute-service");
/**
* Check the value is one of these
*/
function IsIn(arg) {
return (target, propertyName) => (0, attribute_service_1.addAttributeOptions)(target, propertyName, {
validate: {
isIn: arg,
},
});
}
exports.IsIn = IsIn;
//# sourceMappingURL=is-in.js.map
;