Skip to content

Commit cf83a99

Browse files
committed
fix: from method typings
Allow fallback to generic string
1 parent 74d3537 commit cf83a99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SupabaseClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ export default class SupabaseClient<
139139
from<
140140
TableName extends string & keyof Schema['Tables'],
141141
Table extends Schema['Tables'][TableName]
142-
>(table: TableName): PostgrestQueryBuilder<Table> {
142+
>(table: TableName): PostgrestQueryBuilder<Table>
143+
from(table: string): PostgrestQueryBuilder<any>
144+
from(table: string): PostgrestQueryBuilder<any> {
143145
return this.rest.from(table)
144146
}
145147

0 commit comments

Comments
 (0)