UNPKG

class-validator-extended

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