Cleaned up components and their props
This commit is contained in:
@@ -5,6 +5,16 @@ export type SupabaseClient = SBClient<Database>;
|
||||
|
||||
export type { User } from '@supabase/supabase-js';
|
||||
|
||||
export type Result<T> = {
|
||||
data: T | null;
|
||||
error: { message: string } | null;
|
||||
};
|
||||
|
||||
export type AsyncReturnType<T extends (...args: any) => Promise<any>> =
|
||||
T extends (...args: any) => Promise<infer R> ? R : never;
|
||||
|
||||
export type ExtractResultData<T> = T extends Result<infer U> ? U : never;
|
||||
|
||||
// Table row types
|
||||
export type Profile = Database['public']['Tables']['profiles']['Row'];
|
||||
export type Status = Database['public']['Tables']['statuses']['Row'];
|
||||
|
Reference in New Issue
Block a user