Skip to content

Commit

Permalink
fix(deps): bump postgrest-js
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Oct 19, 2022
1 parent 9bb27f3 commit 3bd2e8e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
14 changes: 7 additions & 7 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
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"@supabase/functions-js": "^2.0.0",
"@supabase/gotrue-js": "^2.0.1",
"@supabase/postgrest-js": "^1.0.0",
"@supabase/postgrest-js": "^1.1.0",
"@supabase/realtime-js": "^2.1.0",
"@supabase/storage-js": "^2.0.0",
"cross-fetch": "^3.1.5"
Expand Down
9 changes: 5 additions & 4 deletions src/SupabaseClient.ts
Expand Up @@ -156,12 +156,12 @@ export default class SupabaseClient<
from<
TableName extends string & keyof Schema['Tables'],
Table extends Schema['Tables'][TableName]
>(relation: TableName): PostgrestQueryBuilder<Table>
>(relation: TableName): PostgrestQueryBuilder<Schema, Table>
from<ViewName extends string & keyof Schema['Views'], View extends Schema['Views'][ViewName]>(
relation: ViewName
): PostgrestQueryBuilder<View>
from(relation: string): PostgrestQueryBuilder<any>
from(relation: string): PostgrestQueryBuilder<any> {
): PostgrestQueryBuilder<Schema, View>
from(relation: string): PostgrestQueryBuilder<Schema, any>
from(relation: string): PostgrestQueryBuilder<Schema, any> {
return this.rest.from(relation)
}

Expand All @@ -185,6 +185,7 @@ export default class SupabaseClient<
count?: 'exact' | 'planned' | 'estimated'
}
): PostgrestFilterBuilder<
Schema,
Function_['Returns'] extends any[]
? Function_['Returns'][number] extends Record<string, unknown>
? Function_['Returns'][number]
Expand Down

0 comments on commit 3bd2e8e

Please sign in to comment.