aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-03-07 20:23:59 +0100
committerGitHub <[email protected]>2022-03-07 20:23:59 +0100
commit5595b9fc7bf700cb0ca3d0792a3a879110ba43c5 (patch)
tree9f52f389b1a30fbcbd3492b915c0dbd26d381558
parent071e2bfb7e11404ba1a14b5407154468b958ef48 (diff)
downloadfaker-5595b9fc7bf700cb0ca3d0792a3a879110ba43c5.tar.xz
faker-5595b9fc7bf700cb0ca3d0792a3a879110ba43c5.zip
docs: show union options parameters (#602)
-rw-r--r--scripts/apidoc/signature.ts9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/apidoc/signature.ts b/scripts/apidoc/signature.ts
index 6340ae66..287fc737 100644
--- a/scripts/apidoc/signature.ts
+++ b/scripts/apidoc/signature.ts
@@ -190,12 +190,9 @@ function analyzeParameterOptions(
parameterType: SomeType
): MethodParameter[] {
if (parameterType.type === 'union') {
- return [];
- // TODO ST-DDT 2022-02-26: Currently not supported by typedoc
- // https://github.com/TypeStrong/typedoc/issues/1876
- // return parameterType.types.flatMap((type) =>
- // analyzeParameterOptions(name, type)
- // );
+ return parameterType.types.flatMap((type) =>
+ analyzeParameterOptions(name, type)
+ );
} else if (parameterType.type === 'reflection') {
const properties = parameterType.declaration.getChildrenByKind(
ReflectionKind.Property