class-validator-extended
Version:
Additional validators for class-validator.
12 lines (11 loc) • 343 B
JavaScript
;
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);
}