Skip to content

Commit

Permalink
fix(cli-repl): Revert workaround for depcheck for searchParams type
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik authored Oct 17, 2024
1 parent 8b8ef7f commit a08940b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/cli-repl/src/cli-repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1017,11 +1017,12 @@ export class CliRepl implements MongoshIOProvider {
}

async isTlsKeyFilePasswordMissingURI(
searchParams: unknown
searchParams: ReturnType<
typeof ConnectionString.prototype.typedSearchParams<DevtoolsConnectOptions>
>
): Promise<boolean> {
const searchMap = searchParams as Map<keyof DevtoolsConnectOptions, string>;
const tlsCertificateKeyFile = searchMap.get('tlsCertificateKeyFile');
const tlsCertificateKeyFilePassword = searchMap.get(
const tlsCertificateKeyFile = searchParams.get('tlsCertificateKeyFile');
const tlsCertificateKeyFilePassword = searchParams.get(
'tlsCertificateKeyFilePassword'
);

Expand Down

0 comments on commit a08940b

Please sign in to comment.