Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 933b4d6

Browse files
committed
docs: move doc comments to func impl
This makes the doc comments show up for all the function signatures, instead of just the first one.
1 parent ebd3690 commit 933b4d6

File tree

4 files changed

+86
-89
lines changed

4 files changed

+86
-89
lines changed

src/PostgrestClient.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ export default class PostgrestClient<
5656
this.fetch = fetch
5757
}
5858

59-
/**
60-
* Perform a query on a table or a view.
61-
*
62-
* @param relation - The table or view name to query
63-
*/
6459
from<
6560
TableName extends string & keyof Schema['Tables'],
6661
Table extends Schema['Tables'][TableName]
@@ -69,6 +64,11 @@ export default class PostgrestClient<
6964
relation: ViewName
7065
): PostgrestQueryBuilder<Schema, View>
7166
from(relation: string): PostgrestQueryBuilder<Schema, any>
67+
/**
68+
* Perform a query on a table or a view.
69+
*
70+
* @param relation - The table or view name to query
71+
*/
7272
from(relation: string): PostgrestQueryBuilder<Schema, any> {
7373
const url = new URL(`${this.url}/${relation}`)
7474
return new PostgrestQueryBuilder<Schema, any>(url, {

0 commit comments

Comments
 (0)