Skip to content

Commit

Permalink
docs: show union options parameters (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Mar 7, 2022
1 parent 071e2bf commit 5595b9f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/apidoc/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5595b9f

Please sign in to comment.