Skip to content

Commit

Permalink
fix: from method typings
Browse files Browse the repository at this point in the history
Allow fallback to generic string
  • Loading branch information
soedirgo committed Aug 13, 2022
1 parent 74d3537 commit cf83a99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SupabaseClient.ts
Expand Up @@ -139,7 +139,9 @@ export default class SupabaseClient<
from<
TableName extends string & keyof Schema['Tables'],
Table extends Schema['Tables'][TableName]
>(table: TableName): PostgrestQueryBuilder<Table> {
>(table: TableName): PostgrestQueryBuilder<Table>
from(table: string): PostgrestQueryBuilder<any>
from(table: string): PostgrestQueryBuilder<any> {
return this.rest.from(table)
}

Expand Down

0 comments on commit cf83a99

Please sign in to comment.