Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add missing return types #447

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export abstract class QueryClient {
this.#connection = connection;
}

get connected() {
get connected(): boolean {
return this.#connection.connected;
}

Expand Down
6 changes: 3 additions & 3 deletions connection/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,17 @@ export class Connection {
#tls?: boolean;
#transport?: "tcp" | "socket";

get pid() {
get pid(): number | undefined {
return this.#pid;
}

/** Indicates if the connection is carried over TLS */
get tls() {
get tls(): boolean | undefined {
return this.#tls;
}

/** Indicates the connection protocol used */
get transport() {
get transport(): "tcp" | "socket" | undefined {
return this.#transport;
}

Expand Down
2 changes: 1 addition & 1 deletion query/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class QueryResult {
#row_description?: RowDescription;
public warnings: Notice[] = [];

get rowDescription() {
get rowDescription(): RowDescription | undefined {
return this.#row_description;
}

Expand Down
6 changes: 3 additions & 3 deletions query/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Savepoint {
this.#update_callback = update_callback;
}

get instances() {
get instances(): number {
return this.#instance_count;
}

Expand Down Expand Up @@ -142,11 +142,11 @@ export class Transaction {
this.#updateClientLock = update_client_lock_callback;
}

get isolation_level() {
get isolation_level(): IsolationLevel {
return this.#isolation_level;
}

get savepoints() {
get savepoints(): Savepoint[] {
return this.#savepoints;
}

Expand Down
Loading