UNPKG

class-validator-extended

Version:
12 lines (11 loc) 343 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.negativeBigInt = negativeBigInt; const is_bigint_1 = require("../../type/is-bigint"); /** * @category Predicates * @param value The value to validate. */ function negativeBigInt(value) { return (0, is_bigint_1.isBigInt)(value) && value < BigInt(0); }