From bc362f6bc8feb19630d7ba360bae540d277f9da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 15 Aug 2023 18:59:43 +0300 Subject: [PATCH] Revert "Slot parameters apidoc updates on build-apidoc" This reverts commit b7197c622f5aa6ac59b54539755f8c056391805c. --- api-generator/build-apidoc.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api-generator/build-apidoc.js b/api-generator/build-apidoc.js index c5ec492ed..af2bd3e24 100644 --- a/api-generator/build-apidoc.js +++ b/api-generator/build-apidoc.js @@ -382,11 +382,7 @@ if (project) { } else { const childType = child.type.elementType ? child.type.elementType.name : child.type.name; - if (child.type?.declaration?.signatures) { - type += `\t ${child.name}: (${child.type?.declaration?.signatures[0]?.parameters[0].name}: ${child.type?.declaration?.signatures[0]?.parameters[0].type?.name}) => ${child.type?.declaration?.signatures[0].type?.name}, // ${child.type?.declaration?.signatures[0].comment.summary[0]?.text}\n`; - } else { - type += ` \t ${child.name}: ${childType}, // ${child.comment?.summary[0]?.text}\n `; - } + type += ` \t ${child.name}: ${childType}, // ${child.comment?.summary[0]?.text}\n `; } }); }