Skip to content

Commit

Permalink
docs: show union options parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Mar 7, 2022
1 parent 071e2bf commit d16d405
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/apidoc/signature.ts
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 d16d405

Please sign in to comment.