Skip to content

Commit 5595b9f

Browse files
authored
docs: show union options parameters (#602)
1 parent 071e2bf commit 5595b9f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

scripts/apidoc/signature.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,9 @@ function analyzeParameterOptions(
190190
parameterType: SomeType
191191
): MethodParameter[] {
192192
if (parameterType.type === 'union') {
193-
return [];
194-
// TODO ST-DDT 2022-02-26: Currently not supported by typedoc
195-
// https://github.com/TypeStrong/typedoc/issues/1876
196-
// return parameterType.types.flatMap((type) =>
197-
// analyzeParameterOptions(name, type)
198-
// );
193+
return parameterType.types.flatMap((type) =>
194+
analyzeParameterOptions(name, type)
195+
);
199196
} else if (parameterType.type === 'reflection') {
200197
const properties = parameterType.declaration.getChildrenByKind(
201198
ReflectionKind.Property

0 commit comments

Comments
 (0)