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

Commit 759e9f1

Browse files
thorwebdevsoedirgo
andauthored
Update src/lib/types.ts
Co-authored-by: Bobbie Soedirgo <[email protected]>
1 parent 57d7b4c commit 759e9f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export abstract class PostgrestBuilder<T> implements PromiseLike<PostgrestRespon
5151
| ((value: PostgrestResponse<T>) => TResult1 | PromiseLike<TResult1>)
5252
| undefined
5353
| null,
54-
onrejected?: (value: any) => any
55-
): Promise<any> {
54+
onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
55+
): PromiseLike<TResult1 | TResult2> {
5656
// https://postgrest.org/en/stable/api.html#switching-schemas
5757
if (typeof this.schema === 'undefined') {
5858
// skip

0 commit comments

Comments
 (0)