From 1a43adc50655360fcd18484a2a238e8fe8c03421 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 27 Feb 2024 16:40:18 +0100 Subject: [PATCH] chore: fix docs roll for functions without args follow-up (#29687) --- utils/doclint/documentation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/doclint/documentation.js b/utils/doclint/documentation.js index a50423996a92f..f0527c412053d 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