@toolz/allow
Advanced tools
Comparing version 0.0.13 to 0.0.14
{ | ||
"name": "@toolz/allow", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Provides validation of data types", | ||
"keywords": [ | ||
"runtime", | ||
"validation", | ||
@@ -7,0 +8,0 @@ "data type", |
@@ -569,3 +569,3 @@ # allow | ||
```javascript | ||
const myCustomErrorHandler = () => { | ||
const myCustomErrorHandler = (value, message) => { | ||
// do the custom error handling... | ||
@@ -581,2 +581,6 @@ } | ||
those features, you must use setFailureBehavior(). | ||
When the onFailure method is invoked, it will be called with two arguments: | ||
The original value that failed validation | ||
The message spawned by that failed validation | ||
*/ | ||
@@ -583,0 +587,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26900
601