aboutsummaryrefslogtreecommitdiff
path: root/scripts/apidoc
diff options
context:
space:
mode:
authorrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>2022-07-10 11:49:03 +0200
committerGitHub <[email protected]>2022-07-10 11:49:03 +0200
commitb0a8f4745aff6b801bc3e52df4035b660eeb7eb3 (patch)
treeeb9a68e14842c9ba9ac8b6b3a129fdb2f9f8995a /scripts/apidoc
parentaf0beb994a400b1ef5a289ddc4f9cb7effad9eaf (diff)
downloadfaker-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/apidoc')
-rw-r--r--scripts/apidoc/signature.ts7
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
+ )
),
}));
}