typeof-arguments
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "typeof-arguments", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Validate the types of arguments passed to the function.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -49,6 +49,10 @@ # Description | ||
* The one [Object] argument is passed through `callback` function with the following properties: | ||
* `index` indicates the [Number] index of the incorrect argument passed through the enclosing function, eg. `0`, `1` | ||
* `actual` indicates the actual type of the argument passed through the enclosing function, eg. `'[String]'` | ||
* `expected` indicates the type(s) expected by the user, eg. `'[Array]'`, `'[Boolean|Number]'`, `/array|object/i` | ||
* `message` is the default error [String] message, that you can use for example to throw an error in the callback function | ||
* **`index`** | ||
indicates the [Number] index of the incorrect argument passed through the enclosing function, eg. `0`, `1` | ||
* **`actual`** | ||
indicates the actual type of the argument passed through the enclosing function, eg. `'[String]'` | ||
* **`expected`** | ||
indicates the type(s) expected by the user, eg. `'[Array]'`, `'[Boolean|Number]'`, `/array|object/i` | ||
* **`message`** | ||
is the default error [String] message, that you can use for example to throw an error in the callback function | ||
@@ -55,0 +59,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
12704
200