From ee0ab2a3ff5cd4f3d8ead7b6555d703fe26f802d Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Wed, 17 Aug 2022 10:03:49 -0400 Subject: [PATCH] lib: add missing optional jsdoc to validateSignalName --- lib/internal/validators.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/validators.js b/lib/internal/validators.js index a50f8c0cd67a63..9aa61c88ff8919 100644 --- a/lib/internal/validators.js +++ b/lib/internal/validators.js @@ -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') { @@ -341,7 +341,7 @@ function validatePort(port, name = 'Port', allowZero = true) { /** * @callback validateAbortSignal - * @param {string=} signal + * @param {*} signal * @param {string} name */