From b0a8f4745aff6b801bc3e52df4035b660eeb7eb3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 10 Jul 2022 11:49:03 +0200 Subject: chore(deps): update doc-dependencies (#1123) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- scripts/apidoc/signature.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/apidoc/signature.ts b/scripts/apidoc/signature.ts index 0cae84a4..dd60a223 100644 --- a/scripts/apidoc/signature.ts +++ b/scripts/apidoc/signature.ts @@ -4,6 +4,7 @@ import type { DeclarationReflection, ParameterReflection, Reflection, + ReflectionType, SignatureReflection, SomeType, Type, @@ -203,7 +204,11 @@ function analyzeParameterOptions( type: declarationTypeToText(property), default: extractDefaultFromComment(property.comment), description: mdToHtml( - toBlock(property.comment ?? property.signatures?.[0].comment) + toBlock( + property.comment ?? + (property.type as ReflectionType)?.declaration.signatures?.[0] + .comment + ) ), })); } -- cgit v1.2.3