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

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
}
}