UNPKG

validatorshield

Version:

Universal validation (frontend + backend) with TypeScript. Includes common rules and Sequelize-backed async rules (unique, exists).

7 lines (6 loc) 198 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.different = different; function different(value, ctx, otherField) { return ctx.data[otherField] !== value; }