UNPKG

bguard

Version:

**bguard** is a powerful, flexible, and type-safe validation library for TypeScript. It allows developers to define validation schemas for their data structures and ensures that data conforms to the expected types and constraints.

18 lines (13 loc) 604 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _chunkTJQ5NVL4js = require('./chunk-TJQ5NVL4.js'); // src/asserts/number/negative.ts var negativeErrorMessage = "The received value is not a negative number"; var negativeErrorKey = "n:negative"; var negative = () => (received, ctx) => { if (received >= 0) ctx.addIssue("negative", received, negativeErrorKey); }; negative.key = negativeErrorKey; negative.message = negativeErrorMessage; _chunkTJQ5NVL4js.setToDefaultLocale.call(void 0, negative); exports.negative = negative; //# sourceMappingURL=chunk-24LO7MNY.js.map