diff --git a/api-generator/build-apidoc.js b/api-generator/build-apidoc.js
index 963805b85..ca1d5f8b4 100644
--- a/api-generator/build-apidoc.js
+++ b/api-generator/build-apidoc.js
@@ -378,7 +378,7 @@ if (project) {
const childSinature = child.signatures[0];
const parameters = childSinature.parameters.reduce((acc, { name, type }, index) => (index === 0 ? `${name}: ${type.name}` : `${acc}, ${name}: ${type.name}`), '');
- type += ` \t ${childSinature.name}(${parameters}): ${childSinature.type?.name}, // ${childSinature.comment?.summary[0]?.text}\n `;
+ type += ` \t ${childSinature.name}(${parameters}): ${childSinature.type?.name}, // ${childSinature.comment?.summary[0]?.text}\n `;
} else {
if (child.type?.declaration?.signatures) {
let functionParameters = '';
@@ -388,17 +388,17 @@ if (project) {
functionParameters += `${param.name}: ${param.type?.name}`;
});
- type += `\t ${child.name}: (${functionParameters}) ⇒ ${child.type?.declaration?.signatures[0]?.type?.name}, // ${child.type?.declaration?.signatures[0]?.comment.summary[0]?.text}\n`;
+ type += `\t ${child.name}: (${functionParameters}) ⇒ ${child.type?.declaration?.signatures[0]?.type?.name}, // ${child.type?.declaration?.signatures[0]?.comment.summary[0]?.text}\n`;
} else {
const childType = child.type.elementType ? child.type.elementType.name : child.type.name;
- type += ` \t ${child.name}: ${childType}, // ${child.comment?.summary[0]?.text}\n `;
+ type += ` \t ${child.name}: ${childType}, // ${child.comment?.summary[0]?.text}\n `;
}
}
});
}
- type = `{\n ${type} }`;
+ type = `{\n ${type}}`;
}
return {