UNPKG

@codeparticle/formal

Version:

A <2kb library for validating data of any kind

20 lines (18 loc) 433 B
import { createRule } from "./chunk-DDICIM7S.mjs"; // src/rules/greater-than.ts var greaterThan = (min) => createRule({ condition: (num) => num > min, message: (num) => `${num} must be greater than ${min}` }); export { 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-G6M2LGMK.mjs.map