File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ export { default as PostgrestTransformBuilder } from './PostgrestTransformBuilde
5
5
export { default as PostgrestBuilder } from './PostgrestBuilder'
6
6
export {
7
7
PostgrestResponse ,
8
+ PostgrestResponseFailure ,
9
+ PostgrestResponseSuccess ,
8
10
PostgrestSingleResponse ,
9
11
PostgrestMaybeSingleResponse ,
10
12
PostgrestError ,
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ interface PostgrestResponseBase {
21
21
status : number
22
22
statusText : string
23
23
}
24
- interface PostgrestSingleResponseSuccess < T > extends PostgrestResponseBase {
24
+ export interface PostgrestResponseSuccess < T > extends PostgrestResponseBase {
25
25
error : null
26
26
data : T
27
27
count : number | null
28
28
}
29
- interface PostgrestResponseFailure extends PostgrestResponseBase {
29
+ export interface PostgrestResponseFailure extends PostgrestResponseBase {
30
30
error : PostgrestError
31
31
data : null
32
32
count : null
@@ -36,7 +36,7 @@ interface PostgrestResponseFailure extends PostgrestResponseBase {
36
36
// - remove PostgrestResponse and PostgrestMaybeSingleResponse
37
37
// - rename PostgrestSingleResponse to PostgrestResponse
38
38
export type PostgrestSingleResponse < T > =
39
- | PostgrestSingleResponseSuccess < T >
39
+ | PostgrestResponseSuccess < T >
40
40
| PostgrestResponseFailure
41
41
export type PostgrestMaybeSingleResponse < T > = PostgrestSingleResponse < T | null >
42
42
export type PostgrestResponse < T > = PostgrestSingleResponse < T [ ] >
You can’t perform that action at this time.
0 commit comments