Skip to content

Commit

Permalink
fix: supabase types were not defaulting to public schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeistrich committed Sep 7, 2024
1 parent e4e9212 commit 22f79a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sync-plugins/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface SyncedSupabaseConfiguration
interface SyncedSupabaseProps<
Client extends SupabaseClient<any, any>,
Collection extends SupabaseCollectionOf<Client, SchemaName>,
SchemaName extends SchemaNameOf<Client>,
SchemaName extends SchemaNameOf<Client> = 'public',
TOption extends CrudAsOption = 'object',
TRemote extends SupabaseRowOf<Client, Collection, SchemaName> = SupabaseRowOf<Client, Collection, SchemaName>,
TLocal = TRemote,
Expand Down Expand Up @@ -139,7 +139,7 @@ function wrapSupabaseFn(fn: (...args: any) => PromiseLike<any>) {
export function syncedSupabase<
Client extends SupabaseClient<any, any>,
Collection extends SupabaseCollectionOf<Client, SchemaName> & string,
SchemaName extends SchemaNameOf<Client>,
SchemaName extends SchemaNameOf<Client> = 'public',
AsOption extends CrudAsOption = 'object',
TRemote extends SupabaseRowOf<Client, Collection, SchemaName> = SupabaseRowOf<Client, Collection, SchemaName>,
TLocal = TRemote,
Expand Down

0 comments on commit 22f79a0

Please sign in to comment.