Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion docs/API-Reference/utils/ValidationUtils.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Used to validate whether type of unknown value is an integer.
<a name="isIntegerInRange"></a>

## isIntegerInRange(value, [lowerLimit], [upperLimit]) ⇒ <code>boolean</code>
Used to validate whether type of unknown value is an integer, and, if so,is it within the option lower and upper limits.
Used to validate whether type of unknown value is an integer, and, if so,
is it within the option lower and upper limits.

**Kind**: global function
**Returns**: <code>boolean</code> - true if value is an interger, and optionally in specified range.
Expand All @@ -29,3 +30,18 @@ Used to validate whether type of unknown value is an integer, and, if so, is it
| [lowerLimit] | <code>number</code> | Optional lower limit (inclusive) |
| [upperLimit] | <code>number</code> | Optional upper limit (inclusive) |

<a name="isWithinRange"></a>

## isWithinRange(value, [lowerLimit], [upperLimit]) ⇒ <code>boolean</code>
Used to validate whether type of unknown value is a number (including decimals),
and, if so, is it within the optional lower and upper limits.

**Kind**: global function
**Returns**: <code>boolean</code> - true if value is a finite number, and optionally in specified range.

| Param | Type | Description |
| --- | --- | --- |
| value | <code>\*</code> | Value for which to validate its type |
| [lowerLimit] | <code>number</code> | Optional lower limit (inclusive) |
| [upperLimit] | <code>number</code> | Optional upper limit (inclusive) |

19 changes: 9 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"@floating-ui/dom": "^0.5.4",
"@fortawesome/fontawesome-free": "^6.1.2",
"@highlightjs/cdn-assets": "^11.5.1",
"@phcode/fs": "^3.0.1",
"@phcode/fs": "^4.0.1",
"@phcode/language-support": "^1.1.0",
"@pixelbrackets/gfm-stylesheet": "^1.1.0",
"@prettier/plugin-php": "^0.22.2",
Expand All @@ -121,4 +121,4 @@
"tinycolor2": "^1.4.2",
"underscore": "^1.13.4"
}
}
}
13 changes: 6 additions & 7 deletions src-node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"IMPORTANT!!": "Adding things here will bloat up the package size",
"dependencies": {
"@phcode/fs": "^3.0.1",
"@phcode/fs": "^4.0.1",
"open": "^10.1.0",
"npm": "10.1.0",
"ws": "^8.17.1",
Expand All @@ -29,4 +29,4 @@
"which": "^2.0.1",
"@expo/sudo-prompt": "^9.3.2"
}
}
}
Loading