created global types
parent
99d206f65f
commit
927c7ff298
@ -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…
Reference in New Issue