Skip to content

Commit

Permalink
Use a more permissive workaround for a type
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Oct 15, 2024
1 parent facadf8 commit e112193
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/cli-repl/src/cli-repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1017,12 +1017,11 @@ export class CliRepl implements MongoshIOProvider {
}

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

Expand Down

0 comments on commit e112193

Please sign in to comment.