From 18672aca9b8d10feac6645073a5025826cc11483 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, 5 Sep 2023 14:34:08 +0300 Subject: [PATCH] Change slot definitions fonts from bold to medium --- api-generator/build-apidoc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {