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