Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 791643b

Browse files
authored
fix: Convert PostgrestError to a type (#159)
fixes #158
1 parent 4c1b227 commit 791643b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import fetch from 'cross-fetch'
55
*
66
* {@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes}
77
*/
8-
interface PostgrestError {
8+
type PostgrestError = {
99
message: string
1010
details: string
1111
hint: string

0 commit comments

Comments
 (0)