We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa9f6fb commit e552d30Copy full SHA for e552d30
utils/doclint/documentation.js
@@ -737,7 +737,8 @@ function parseTypeExpression(type) {
737
if (type[i] === '(') {
738
name = type.substring(0, i);
739
const matching = matchingBracket(type.substring(i), '(', ')');
740
- args = parseTypeExpression(type.substring(i + 1, i + matching - 1));
+ const argsString = type.substring(i + 1, i + matching - 1);
741
+ args = argsString ? parseTypeExpression(argsString) : null;
742
i = i + matching;
743
if (type[i] === ':') {
744
retType = parseTypeExpression(type.substring(i + 1));
0 commit comments