From 68b1f57a4b3b932247e14d05933aee3aa6c022a4 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 2 Nov 2024 15:04:54 +0800 Subject: [PATCH] fix(scripts): don't build declaration for function startsWith `_` (#119) --- scripts/build-declarations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-declarations.js b/scripts/build-declarations.js index 37b840e..a9846fe 100755 --- a/scripts/build-declarations.js +++ b/scripts/build-declarations.js @@ -69,7 +69,7 @@ function extractFunctions(contents, isTool) { funcName = match[1]; } } - if (funcName) { + if (funcName && !funcName.startsWith("_")) { output.push({ funcName, jsdoc }); } }