UNPKG

validatorshield

Version:

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

7 lines (6 loc) 203 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.integer = integer; function integer(value, _ctx) { return typeof value === 'number' && Number.isInteger(value); }