From a08940b923169466a004cf4086e7a652fe57d3c1 Mon Sep 17 00:00:00 2001 From: Gagik Amaryan Date: Thu, 17 Oct 2024 14:45:19 +0200 Subject: [PATCH] fix(cli-repl): Revert workaround for depcheck for searchParams type --- packages/cli-repl/src/cli-repl.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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' );