Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Hide union children

Coppleab9ed4e41cb8
diff --git a/apps/reference/generator/legacy.ts b/apps/reference/generator/legacy.ts
index bbfce52254f..ad745cd5f5b 100644
--- a/apps/reference/generator/legacy.ts
+++ b/apps/reference/generator/legacy.ts
@@ -130,7 +130,8 @@ function recurseThroughParams(paramDefinition: TsDoc.TypeDefinition) {
if (param.type?.declaration?.children) {
children = param.type?.declaration?.children
} else if (isUnion(param)) {
- children = param.type.types
+ // children = param.type.types
+ children = null // We don't want to show the union types
} else if (param.type === 'reflection') {
children = param.declaration.children
}