createClient
Creates a new Supabase Client.
const createClient: <Database = any, ClientOptions extends import("https://esm.sh/@supabase/postgrest-js@1.21.0/dist/cjs/index.d.ts").ClientServerOptions = GetGenericDatabaseWithOptions<Database, {
PostgrestVersion: "12";
}>["options"], SchemaName extends string & keyof GetGenericDatabaseWithOptions<Database, {PostgrestVersion: "12";
}>["db"] = "public" extends keyof GetGenericDatabaseWithOptions<Database, {PostgrestVersion: "12";
}>["db"] ? "public" : string & keyof GetGenericDatabaseWithOptions<Database, {PostgrestVersion: "12";
}>["db"], Schema = GetGenericDatabaseWithOptions<Database, {PostgrestVersion: "12";
}>["db"][SchemaName] extends GenericSchema ? GetGenericDatabaseWithOptions<Database, {PostgrestVersion: "12";
}>["db"][SchemaName] : any>(supabaseUrl: string,
supabaseKey: string,
options?: SupabaseClientOptions<SchemaName> | undefined,
) => SupabaseClient<Database, ClientOptions, SchemaName, Schema extends GenericSchema ? Schema : any>;