fix(scripts): don't build declaration for function startsWith _ (#119)

This commit is contained in:
sigoden
2024-11-02 15:04:54 +08:00
committed by GitHub
parent 602ca0535e
commit 68b1f57a4b
+1 -1
View File
@@ -69,7 +69,7 @@ function extractFunctions(contents, isTool) {
funcName = match[1]; funcName = match[1];
} }
} }
if (funcName) { if (funcName && !funcName.startsWith("_")) {
output.push({ funcName, jsdoc }); output.push({ funcName, jsdoc });
} }
} }