diff --git a/packages/cli-repl/src/cli-repl.ts b/packages/cli-repl/src/cli-repl.ts index 18479f05f..db97e18de 100644 --- a/packages/cli-repl/src/cli-repl.ts +++ b/packages/cli-repl/src/cli-repl.ts @@ -1017,11 +1017,12 @@ export class CliRepl implements MongoshIOProvider { } async isTlsKeyFilePasswordMissingURI( - searchParams: unknown + searchParams: ReturnType< + typeof ConnectionString.prototype.typedSearchParams + > ): Promise { - const searchMap = searchParams as Map; - const tlsCertificateKeyFile = searchMap.get('tlsCertificateKeyFile'); - const tlsCertificateKeyFilePassword = searchMap.get( + const tlsCertificateKeyFile = searchParams.get('tlsCertificateKeyFile'); + const tlsCertificateKeyFilePassword = searchParams.get( 'tlsCertificateKeyFilePassword' );