Skip to content

Commit

Permalink
refactor: only remove the third overload
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak authored and soedirgo committed Mar 25, 2024
1 parent e327521 commit fc95abb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/SupabaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ export default class SupabaseClient<
}

// NOTE: signatures must be kept in sync with PostgrestClient.from
from<TableName extends keyof Schema['Tables'], Table extends Schema['Tables'][TableName]>(
relation: TableName
): PostgrestQueryBuilder<Schema, Table, TableName>
from<ViewName extends keyof Schema['Views'], View extends Schema['Views'][ViewName]>(
from<
TableName extends string & keyof Schema['Tables'],
Table extends Schema['Tables'][TableName]
>(relation: TableName): PostgrestQueryBuilder<Schema, Table, TableName>
from<ViewName extends string & keyof Schema['Views'], View extends Schema['Views'][ViewName]>(
relation: ViewName
): PostgrestQueryBuilder<Schema, View, ViewName>
/**
Expand Down

0 comments on commit fc95abb

Please sign in to comment.