From 5595b9fc7bf700cb0ca3d0792a3a879110ba43c5 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 7 Mar 2022 20:23:59 +0100 Subject: docs: show union options parameters (#602) --- scripts/apidoc/signature.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'scripts/apidoc') 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 -- cgit v1.2.3