UNPKG

sequelize-typescript

Version:
16 lines 460 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IsUrl = void 0; const attribute_service_1 = require("../model/column/attribute-service"); /** * Checks for url format (http://foo.com) */ function IsUrl(target, propertyName) { (0, attribute_service_1.addAttributeOptions)(target, propertyName, { validate: { isUrl: true, }, }); } exports.IsUrl = IsUrl; //# sourceMappingURL=is-url.js.map