diff --git a/scripts/apidoc/signature.ts b/scripts/apidoc/signature.ts index 6340ae66480..287fc737fc3 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