ts-cast
Version:
Runtime typechecking
11 lines (10 loc) • 630 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.gte = exports.notLessThen = exports.gt = exports.greaterThen = void 0;
var names_1 = require("../helpers/names");
var greaterThen = function (limit) { return (0, names_1.withName)(function (value) { return value > limit; }, "greater then ".concat(limit)); };
exports.greaterThen = greaterThen;
exports.gt = exports.greaterThen;
var notLessThen = function (limit) { return (0, names_1.withName)(function (value) { return value >= limit; }, "not less then ".concat(limit)); };
exports.notLessThen = notLessThen;
exports.gte = exports.notLessThen;