Skip to content

Commit

Permalink
fix(postgrest-js): typings for rpc with GET
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Apr 11, 2024
1 parent b4cc20d commit 581c60f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@supabase/auth-js": "2.63.0",
"@supabase/functions-js": "2.2.2",
"@supabase/node-fetch": "2.6.15",
"@supabase/postgrest-js": "1.15.0",
"@supabase/postgrest-js": "1.15.1",
"@supabase/realtime-js": "2.9.3",
"@supabase/storage-js": "2.5.5"
},
Expand Down
3 changes: 3 additions & 0 deletions src/SupabaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ export default class SupabaseClient<
* @param options - Named parameters
* @param options.head - When set to `true`, `data` will not be returned.
* Useful if you only need the count.
* @param options.get - When set to `true`, the function will be called with
* read-only access mode.
* @param options.count - Count algorithm to use to count rows returned by the
* function. Only applicable for [set-returning
* functions](https://www.postgresql.org/docs/current/functions-srf.html).
Expand All @@ -191,6 +193,7 @@ export default class SupabaseClient<
args: Fn['Args'] = {},
options: {
head?: boolean
get?: boolean
count?: 'exact' | 'planned' | 'estimated'
} = {}
): PostgrestFilterBuilder<
Expand Down

0 comments on commit 581c60f

Please sign in to comment.