Skip to content

Commit

Permalink
cherry-pick(#29684): chore: fix docs roll for functions without args
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 27, 2024
1 parent aa9f6fb commit e552d30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/doclint/documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,8 @@ function parseTypeExpression(type) {
if (type[i] === '(') {
name = type.substring(0, i);
const matching = matchingBracket(type.substring(i), '(', ')');
args = parseTypeExpression(type.substring(i + 1, i + matching - 1));
const argsString = type.substring(i + 1, i + matching - 1);
args = argsString ? parseTypeExpression(argsString) : null;
i = i + matching;
if (type[i] === ':') {
retType = parseTypeExpression(type.substring(i + 1));
Expand Down

0 comments on commit e552d30

Please sign in to comment.