Skip to content

Commit 90123d3

Browse files
fixed typing issue not caught by typescript
1 parent ce905bd commit 90123d3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/common/config.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const MONGOSH_OPTIONS = {
4747
"tlsCertificateKeyFilePassword",
4848
"tlsCertificateSelector",
4949
"tlsDisabledProtocols",
50-
"username"
50+
"username",
5151
],
5252
boolean: [
5353
"apiDeprecationErrors",
@@ -93,15 +93,13 @@ const MONGOSH_OPTIONS = {
9393
} as const;
9494

9595
const MCP_SERVER_OPTIONS = {
96-
string: [
97-
"atlasTemporaryDatabaseUserLifetimeMs",
98-
],
96+
string: ["atlasTemporaryDatabaseUserLifetimeMs"],
9997
} as const;
10098

10199
const OPTIONS = {
102-
string: { ...MONGOSH_OPTIONS.string, ...MCP_SERVER_OPTIONS.string },
103-
boolean: { ...MONGOSH_OPTIONS.boolean },
104-
array: { ...MONGOSH_OPTIONS.array },
100+
string: [...MONGOSH_OPTIONS.string, ...MCP_SERVER_OPTIONS.string],
101+
boolean: [...MONGOSH_OPTIONS.boolean],
102+
array: [...MONGOSH_OPTIONS.array],
105103
alias: { ...MONGOSH_OPTIONS.alias },
106104
configuration: { ...MONGOSH_OPTIONS.configuration },
107105
} as const;

0 commit comments

Comments
 (0)