Skip to content

Commit a08940b

Browse files
authored
fix(cli-repl): Revert workaround for depcheck for searchParams type
1 parent 8b8ef7f commit a08940b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/cli-repl/src/cli-repl.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,11 +1017,12 @@ export class CliRepl implements MongoshIOProvider {
10171017
}
10181018

10191019
async isTlsKeyFilePasswordMissingURI(
1020-
searchParams: unknown
1020+
searchParams: ReturnType<
1021+
typeof ConnectionString.prototype.typedSearchParams<DevtoolsConnectOptions>
1022+
>
10211023
): Promise<boolean> {
1022-
const searchMap = searchParams as Map<keyof DevtoolsConnectOptions, string>;
1023-
const tlsCertificateKeyFile = searchMap.get('tlsCertificateKeyFile');
1024-
const tlsCertificateKeyFilePassword = searchMap.get(
1024+
const tlsCertificateKeyFile = searchParams.get('tlsCertificateKeyFile');
1025+
const tlsCertificateKeyFilePassword = searchParams.get(
10251026
'tlsCertificateKeyFilePassword'
10261027
);
10271028

0 commit comments

Comments
 (0)