created global types

main
TZGyn 3 years ago
parent 99d206f65f
commit 927c7ff298

20
types/global.d.ts vendored

@ -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;
}
}
Loading…
Cancel
Save