mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-28 01:15:10 +03:00
chore: fix docs roll for functions without args (#29684)
This commit is contained in:
parent
1c8e8bea7e
commit
03902d8e85
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user