diff options
| author | renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> | 2022-07-10 11:49:03 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-10 11:49:03 +0200 |
| commit | b0a8f4745aff6b801bc3e52df4035b660eeb7eb3 (patch) | |
| tree | eb9a68e14842c9ba9ac8b6b3a129fdb2f9f8995a /scripts | |
| parent | af0beb994a400b1ef5a289ddc4f9cb7effad9eaf (diff) | |
| download | faker-b0a8f4745aff6b801bc3e52df4035b660eeb7eb3.tar.xz faker-b0a8f4745aff6b801bc3e52df4035b660eeb7eb3.zip | |
chore(deps): update doc-dependencies (#1123)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ST-DDT <[email protected]>
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 + ) ), })); } |
