diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apidoc/signature.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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 + ) ), })); } |
