@@ -121,7 +121,7 @@ export default class PostgrestQueryBuilder<
121
121
} : {
122
122
count ?: 'exact' | 'planned' | 'estimated'
123
123
} = { }
124
- ) : PostgrestFilterBuilder < Schema , Relation [ 'Row' ] , undefined > {
124
+ ) : PostgrestFilterBuilder < Schema , Relation [ 'Row' ] , null > {
125
125
const method = 'POST'
126
126
127
127
const prefersHeaders = [ ]
@@ -150,7 +150,7 @@ export default class PostgrestQueryBuilder<
150
150
body,
151
151
fetch : this . fetch ,
152
152
allowEmpty : false ,
153
- } as unknown as PostgrestBuilder < undefined > )
153
+ } as unknown as PostgrestBuilder < null > )
154
154
}
155
155
156
156
/**
@@ -197,7 +197,7 @@ export default class PostgrestQueryBuilder<
197
197
ignoreDuplicates ?: boolean
198
198
count ?: 'exact' | 'planned' | 'estimated'
199
199
} = { }
200
- ) : PostgrestFilterBuilder < Schema , Relation [ 'Row' ] , undefined > {
200
+ ) : PostgrestFilterBuilder < Schema , Relation [ 'Row' ] , null > {
201
201
const method = 'POST'
202
202
203
203
const prefersHeaders = [ `resolution=${ ignoreDuplicates ? 'ignore' : 'merge' } -duplicates` ]
@@ -220,7 +220,7 @@ export default class PostgrestQueryBuilder<
220
220
body,
221
221
fetch : this . fetch ,
222
222
allowEmpty : false ,
223
- } as unknown as PostgrestBuilder < undefined > )
223
+ } as unknown as PostgrestBuilder < null > )
224
224
}
225
225
226
226
/**
@@ -251,7 +251,7 @@ export default class PostgrestQueryBuilder<
251
251
} : {
252
252
count ?: 'exact' | 'planned' | 'estimated'
253
253
} = { }
254
- ) : PostgrestFilterBuilder < Schema , Relation [ 'Row' ] , undefined > {
254
+ ) : PostgrestFilterBuilder < Schema , Relation [ 'Row' ] , null > {
255
255
const method = 'PATCH'
256
256
const prefersHeaders = [ ]
257
257
const body = values
@@ -271,7 +271,7 @@ export default class PostgrestQueryBuilder<
271
271
body,
272
272
fetch : this . fetch ,
273
273
allowEmpty : false ,
274
- } as unknown as PostgrestBuilder < undefined > )
274
+ } as unknown as PostgrestBuilder < null > )
275
275
}
276
276
277
277
/**
@@ -297,7 +297,7 @@ export default class PostgrestQueryBuilder<
297
297
count,
298
298
} : {
299
299
count ?: 'exact' | 'planned' | 'estimated'
300
- } = { } ) : PostgrestFilterBuilder < Schema , Relation [ 'Row' ] , undefined > {
300
+ } = { } ) : PostgrestFilterBuilder < Schema , Relation [ 'Row' ] , null > {
301
301
const method = 'DELETE'
302
302
const prefersHeaders = [ ]
303
303
if ( count ) {
@@ -315,6 +315,6 @@ export default class PostgrestQueryBuilder<
315
315
schema : this . schema ,
316
316
fetch : this . fetch ,
317
317
allowEmpty : false ,
318
- } as unknown as PostgrestBuilder < undefined > )
318
+ } as unknown as PostgrestBuilder < null > )
319
319
}
320
320
}
0 commit comments