Skip to content

Commit 42881f6

Browse files
authored
refactor(Client): make tableName public & docs
1 parent 7e76f5e commit 42881f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ export class Client extends EventEmitter {
4646
/**
4747
* PostgreSQL database url
4848
* @type {string}
49+
* @readonly
4950
*/
5051

5152
readonly dbUrl: string;
5253

5354
/**
5455
* Client options
5556
* @type {ClientOptions | undefined}
57+
* @readonly
5658
*/
5759

5860
readonly options: ClientOptions | undefined;
@@ -62,7 +64,7 @@ export class Client extends EventEmitter {
6264
* @type {string | undefined}
6365
*/
6466

65-
readonly tableName: string | undefined;
67+
public tableName: string | undefined;
6668

6769
/**
6870
* The `pg` client instance for your database

0 commit comments

Comments
 (0)