UNPKG

sequelize-typescript

Version:

Decorators and some other extras for sequelize (v3 + v4)

18 lines 509 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("reflect-metadata"); var models_1 = require("../../services/models"); /** * Don't allow specific substrings */ function NotContains(value) { return function (target, propertyName) { return models_1.addAttributeOptions(target, propertyName, { validate: { notContains: value } }); }; } exports.NotContains = NotContains; //# sourceMappingURL=NotContains.js.map