Skip to content

Commit

Permalink
lib: add missing optional jsdoc to validateSignalName
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Aug 17, 2022
1 parent 4c4c46a commit ee0ab2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const validateArray = hideStackFrames((value, name, minLength = 0) => {

/**
* @param {*} signal
* @param {string} name
* @param {string} [name='signal']
* @returns {asserts signal is keyof signals}
*/
function validateSignalName(signal, name = 'signal') {
Expand Down Expand Up @@ -341,7 +341,7 @@ function validatePort(port, name = 'Port', allowZero = true) {

/**
* @callback validateAbortSignal
* @param {string=} signal
* @param {*} signal
* @param {string} name
*/

Expand Down

0 comments on commit ee0ab2a

Please sign in to comment.