Removed global type declaration (use zod instead)
parent
08c52b0207
commit
9b0c19492c
@ -1,24 +0,0 @@
|
||||
import { PostgrestError } from '@supabase/postgrest-js'
|
||||
|
||||
export {}
|
||||
|
||||
declare global {
|
||||
interface Note {
|
||||
title: string
|
||||
description: string
|
||||
}
|
||||
|
||||
interface NoteQuery {
|
||||
id: number | string | string[]
|
||||
}
|
||||
|
||||
interface ApiResponse {
|
||||
status: number
|
||||
message: string
|
||||
error: PostgrestError | null
|
||||
}
|
||||
|
||||
interface DeleteResponse extends ApiResponse {
|
||||
data: undefined[] | null
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue