Skip to content

Commit

Permalink
chore: fix docs roll for functions without args (#29684)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Feb 27, 2024
1 parent 1c8e8be commit 03902d8
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 03902d8

Please sign in to comment.