Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fix docs roll for functions without args follow-up (#29687)

Max Schmitt1a43adc50655
diff --git a/utils/doclint/documentation.js b/utils/doclint/documentation.js
index a50423996a..f0527c4120 100644
--- a/utils/doclint/documentation.js
+++ b/utils/doclint/documentation.js
@@ -566,7 +566,7 @@ class Type {
return type;
}
- if (parsedType.args) {
+ if (parsedType.args || parsedType.retType) {
const type = new Type('function');
type.args = [];
// @ts-ignore