Fix output comment in example.js

master
Sven Slootweg 5 years ago
parent afae22b872
commit 8679e533c2

@ -3,7 +3,7 @@
const { validateValue } = require("@validatem/core"); /* FIXME: Add to devDependencies */
const isNumber = require("./");
console.log(validateValue(42, [ isNumber ])); // hello world
console.log(validateValue(42, [ isNumber ])); // 42
console.log(validateValue("hello world", [ isNumber ])); /*
AggregrateValidationError: One or more validation errors occurred:

Loading…
Cancel
Save