There was an error while loading. Please reload this page.
1 parent 5cd6895 commit 6f24405Copy full SHA for 6f24405
packages/core/postgrest-js/src/lib/types.ts
@@ -51,8 +51,8 @@ export abstract class PostgrestBuilder<T> implements PromiseLike<PostgrestRespon
51
| ((value: PostgrestResponse<T>) => TResult1 | PromiseLike<TResult1>)
52
| undefined
53
| null,
54
- onrejected?: (value: any) => any
55
- ): Promise<any> {
+ onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
+ ): PromiseLike<TResult1 | TResult2> {
56
// https://postgrest.org/en/stable/api.html#switching-schemas
57
if (typeof this.schema === 'undefined') {
58
// skip
0 commit comments