1
1
mirror of https://github.com/theoludwig/p61-project.git synced 2024-07-17 07:00:12 +02:00
p61-project/infrastructure/supabase/repositories/_SupabaseRepository.ts

16 lines
467 B
TypeScript

import type { SupabaseClient } from "@supabase/supabase-js"
import type { Database } from "../supabase-types"
export interface SupabaseRepositoryOptions {
supabaseClient: SupabaseClient<Database>
}
export abstract class SupabaseRepository implements SupabaseRepositoryOptions {
public supabaseClient: SupabaseRepositoryOptions["supabaseClient"]
public constructor(options: SupabaseRepositoryOptions) {
this.supabaseClient = options.supabaseClient
}
}