UNPKG

@codeparticle/formal

Version:

A <2kb library for validating data of any kind

20 lines (15 loc) 550 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _chunkYSLAWOV5js = require('./chunk-YSLAWOV5.js'); // src/rules/greater-than.ts var greaterThan = (min) => _chunkYSLAWOV5js.createRule.call(void 0, { condition: (num) => num > min, message: (num) => `${num} must be greater than ${min}` }); exports.greaterThan = greaterThan; /** * @file Check to ensure that a number is greater than a supplied amount. * @name greater-than.js * @author Nick Krause * @license MIT */ //# sourceMappingURL=chunk-Z3D7DYEO.js.map