From 252a8daaa6175f1affea1d3ce3b0c64d5da0db7b Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 27 Feb 2024 15:51:44 +0000 Subject: [PATCH] cherry-pick(#29687): chore: fix docs roll for functions without args follow-up --- 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 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