diff --git a/types/global.d.ts b/types/global.d.ts new file mode 100644 index 0000000..3d75b17 --- /dev/null +++ b/types/global.d.ts @@ -0,0 +1,20 @@ +import { PostgrestError } from '@supabase/postgrest-js'; + +export {}; + +declare global { + interface Note { + title: string; + description: string; + } + + interface ApiResponse { + status: number; + message: string; + error: PostgrestError | null; + } + + interface DeleteResponse extends ApiResponse { + data: undefined[] | null; + } +}