The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Add `params` option to reference docs so that non-js client libs can add parameters (#21708)
Tyler64863f407f90
diff --git a/apps/docs/components/reference/RefFunctionSection.tsx b/apps/docs/components/reference/RefFunctionSection.tsxindex 19d14023f54..983594113ad 100644--- a/apps/docs/components/reference/RefFunctionSection.tsx+++ b/apps/docs/components/reference/RefFunctionSection.tsx@@ -22,7 +22,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {const tsDefinition =hasTsRef && props.typeSpec ? extractTsDocNode(hasTsRef, props.typeSpec) : null- const parameters = hasTsRef && tsDefinition ? generateParameters(tsDefinition) : ''+ const parameters = hasTsRef && tsDefinition ? generateParameters(tsDefinition) : item.paramsconst shortText = hasTsRef && tsDefinition ? tsDefinition.signatures[0].comment.shortText : ''return (@@ -51,7 +51,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {</ReactMarkdown></div>)}- {/* // parameters */}+ {/* parameters */}{parameters && (<div className="not-prose mt-12"><h5 className="mb-3 text-base text-foreground">Parameters</h5>diff --git a/apps/docs/spec/supabase_dart_v2.yml b/apps/docs/spec/supabase_dart_v2.ymlindex 3657561a065..c10621ba3da 100644--- a/apps/docs/spec/supabase_dart_v2.yml+++ b/apps/docs/spec/supabase_dart_v2.yml@@ -6,8 +6,6 @@ info:description: |Supabase Dart.-- definition: spec/enrichments/tsdoc_v2/combined.jsonslugPrefix: '/'specUrl: https://github.com/supabase/supabase/edit/master/apps/docs/spec/supabase_dart_v2.ymllibraries:@@ -23,7 +21,41 @@ functions:The Supabase client is your entrypoint to the rest of the Supabase functionalityand is the easiest way to interact with everything we offer within the Supabase ecosystem.-+ params:+ - name: url+ isOptional: false+ type: string+ description: The unique Supabase URL which is supplied when you create a new project in your project dashboard.+ - name: anonKey+ isOptional: false+ type: string+ description: The unique Supabase Key which is supplied when you create a new project in your project dashboard.+ - name: authOptions+ isOptional: true+ type: FlutterAuthClientOptions+ description: Options to change the Auth behaviors.+ subContent:+ - name: authFlowType+ isOptional: true+ type: AuthFlowType+ description: Whether to use the `pkce` flow or the `implicit` flow. Defaults to `pkce`.+ - name: localStorage+ isOptional: true+ type: LocalStorage+ description: Parameter to override the local storage to store auth tokens.+ - name: autoRefreshToken+ isOptional: true+ type: boolean+ description: Whether to automatically refresh the token when it expires. Defaults to `true`.+ - name: realtimeClientOptions+ isOptional: true+ type: RealtimeClientOptions+ description: Options to change the Realtime behaviors.+ subContent:+ - name: logLevel+ isOptional: true+ type: RealtimeLogLevel+ description: Level of realtime server logs to to be logged.examples:- id: flutter-initializename: For Flutter