validata
Version:
Type safe data validation and sanitization
9 lines • 459 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isAny = void 0;
const common_1 = require("./common");
const check = (value) => !value || !!value;
const coerce = () => (next) => (value, path) => next(value, path);
const validate = (value, path, options) => (0, common_1.basicValidation)(value, path, options);
exports.isAny = (0, common_1.createIsCheck)('anything', check, coerce, validate);
//# sourceMappingURL=any.js.map
;