Skip to content

Commit

Permalink
Update JSDoc to reflect optionallity of some "assert" arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
bryaningl3 committed Feb 11, 2022
1 parent 39e20af commit efff8c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lang/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ module.exports = (() => {
*
* @static
* @param {*} variable - The value to check.
* @param {String} variableName - The name of the value (used for formatting an error message).
* @param {*} type - The expected type of the argument.
* @param {String=} variableName - The name of the value (used for formatting an error message).
* @param {*=} type - The expected type of the argument.
* @param {String=} typeDescription - The description of the expected type (used for formatting an error message).
*/
argumentIsRequired(variable, variableName, type, typeDescription) {
Expand All @@ -76,8 +76,8 @@ module.exports = (() => {
*
* @static
* @param {*} variable - The value to check.
* @param {String} variableName - The name of the value (used for formatting an error message).
* @param {*} type - The expected type of the argument.
* @param {String=} variableName - The name of the value (used for formatting an error message).
* @param {*=} type - The expected type of the argument.
* @param {String=} typeDescription - The description of the expected type (used for formatting an error message).
*/
argumentIsOptional(variable, variableName, type, typeDescription, predicate, predicateDescription) {
Expand Down Expand Up @@ -116,7 +116,7 @@ module.exports = (() => {
*
* @static
* @param {*} variable - The value to check.
* @param {String} variableName - The name of the value (used for formatting an error message).
* @param {String=} variableName - The name of the value (used for formatting an error message).
* @param {Function=} predicate - A function used to validate the item (beyond type checking).
* @param {String=} predicateDescription - A description of the assertion made by the predicate (e.g. "is an integer") that is used for formatting an error message.
*/
Expand Down

0 comments on commit efff8c4

Please sign in to comment.