The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
always use last function signature
Bobbie Soedirgo97fe6f8e541a
diff --git a/apps/docs/lib/refGenerator/helpers.ts b/apps/docs/lib/refGenerator/helpers.tsindex 0c1aea28ee1..69eb8613042 100644--- a/apps/docs/lib/refGenerator/helpers.ts+++ b/apps/docs/lib/refGenerator/helpers.ts@@ -30,7 +30,9 @@ export function generateParameters(tsDefinition: any) {} else functionDeclaration = tsDefinition?.type?.declarationif (!functionDeclaration) return ''- const paramDefinitions: TsDoc.TypeDefinition[] = functionDeclaration.signatures[0].parameters // PMC: seems flaky.. why the [0]?+ // Functions can have multiple signatures - select the last one since that+ // tends to be closer to primitive types (citation needed).+ const paramDefinitions: TsDoc.TypeDefinition[] = functionDeclaration.signatures.at(-1).parametersif (!paramDefinitions) return ''// const paramsComments: TsDoc.CommentTag = tsDefinition.comment?.tags?.filter(x => x.tag == 'param')