The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: update generator to deal with unnamed types
Kang Ming0d2e97aaf2db
diff --git a/packages/generator/LegacyReferenceGenerator.ts b/packages/generator/LegacyReferenceGenerator.tsindex bdde7c96a86..b3149380f83 100644--- a/packages/generator/LegacyReferenceGenerator.ts+++ b/packages/generator/LegacyReferenceGenerator.ts@@ -153,10 +153,14 @@ function recurseThroughParams(paramDefinition: TsDoc.TypeDefinition) {.sort((a, b) => a.name?.localeCompare(b.name)) // first alphabetical.sort((a, b) => (a.flags?.isOptional ? 1 : -1)) // required params first.map((x) => recurseThroughParams(x))- let heading = `<h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>`- subContent = methodListGroup([heading].concat(properties).join('\n'))- }+ // Parameters don't have properties+ if (param.kindString !== 'Parameter') {+ let heading = `<h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>`+ subContent = methodListGroup([heading].concat(properties).join('\n'))+ return methodListItemLabel(labelParams, subContent)+ }+ }return methodListItemLabel(labelParams, subContent)}@@ -272,7 +276,7 @@ Not yet implementedfunction generateLabelParam(param: any) {let labelParams = {}- if (typeof param.type === 'string') {+ if (typeof param.type === 'string' && param.type === 'literal') {labelParams = {name: param.name ?? param.value,isOptional: !!param.flags?.isOptional,