Skip to content

Commit fc95abb

Browse files
vonovaksoedirgo
authored andcommitted
refactor: only remove the third overload
1 parent e327521 commit fc95abb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/SupabaseClient.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ export default class SupabaseClient<
130130
}
131131

132132
// NOTE: signatures must be kept in sync with PostgrestClient.from
133-
from<TableName extends keyof Schema['Tables'], Table extends Schema['Tables'][TableName]>(
134-
relation: TableName
135-
): PostgrestQueryBuilder<Schema, Table, TableName>
136-
from<ViewName extends keyof Schema['Views'], View extends Schema['Views'][ViewName]>(
133+
from<
134+
TableName extends string & keyof Schema['Tables'],
135+
Table extends Schema['Tables'][TableName]
136+
>(relation: TableName): PostgrestQueryBuilder<Schema, Table, TableName>
137+
from<ViewName extends string & keyof Schema['Views'], View extends Schema['Views'][ViewName]>(
137138
relation: ViewName
138139
): PostgrestQueryBuilder<Schema, View, ViewName>
139140
/**

0 commit comments

Comments
 (0)