This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
p61-project/infrastructure/supabase/repositories/_SupabaseRepository.ts

16 lines
467 B
TypeScript
Raw Permalink Normal View History

2024-03-15 22:48:28 +01:00
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
}
}