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 `;
}
});
}