Skip to content

Commit

Permalink
chore: fix port type in client config
Browse files Browse the repository at this point in the history
  • Loading branch information
bombillazo committed Feb 5, 2024
1 parent c21f2f3 commit 82979aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions connection/connection_params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,12 @@ export type ClientOptions = {
};

/** The configuration options required to set up a Client instance */
export type ClientConfiguration = Required<Omit<ClientOptions, "password">> & {
password?: string;
};
export type ClientConfiguration =
& Required<Omit<ClientOptions, "password" | "port">>
& {
password?: string;
port: number;
};

function formatMissingParams(missingParams: string[]) {
return `Missing connection parameters: ${missingParams.join(", ")}`;
Expand Down

0 comments on commit 82979aa

Please sign in to comment.