From d1b6bd660a2c9520513288234d0ff23b0bc0ea8e Mon Sep 17 00:00:00 2001 From: Jungku Lee Date: Tue, 31 Oct 2023 00:51:07 +0900 Subject: [PATCH] fs: update param in jsdoc for `readdir` PR-URL: https://github.com/nodejs/node/pull/50448 Reviewed-By: James M Snell Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca Reviewed-By: Deokjin Kim --- lib/fs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fs.js b/lib/fs.js index e3917187eeb818..7edf3232ad15dc 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1454,10 +1454,11 @@ function readdirSyncRecursive(basePath, options) { * @param {string | { * encoding?: string; * withFileTypes?: boolean; + * recursive?: boolean; * }} [options] * @param {( * err?: Error, - * files?: string[] | Buffer[] | Direct[]; + * files?: string[] | Buffer[] | Dirent[]; * ) => any} callback * @returns {void} */