Skip to content

Commit 7e76f5e

Browse files
authored
refactor(Client): make some members read-only
1 parent f4cc4e0 commit 7e76f5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ export class Client extends EventEmitter {
4848
* @type {string}
4949
*/
5050

51-
public dbUrl: string;
51+
readonly dbUrl: string;
5252

5353
/**
5454
* Client options
5555
* @type {ClientOptions | undefined}
5656
*/
5757

58-
public options: ClientOptions | undefined;
58+
readonly options: ClientOptions | undefined;
5959

6060
/**
6161
* Default table name to use
6262
* @type {string | undefined}
6363
*/
6464

65-
tableName: string | undefined;
65+
readonly tableName: string | undefined;
6666

6767
/**
6868
* The `pg` client instance for your database

0 commit comments

Comments
 (0)