Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6bfaad4

Browse files
authored
fix: typings for mongodb-connection-string-url (#515)
1 parent dd05b48 commit 6bfaad4

File tree

4 files changed

+8
-72
lines changed

4 files changed

+8
-72
lines changed

‎src/common/connectionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EventEmitter } from "events";
22
import type { MongoClientOptions } from "mongodb";
3-
import ConnectionString from "mongodb-connection-string-url";
3+
import {ConnectionString} from "mongodb-connection-string-url";
44
import { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver";
55
import { type ConnectionInfo, generateConnectionInfoFromCliArgs } from "@mongosh/arg-parser";
66
import type { DeviceId } from "../helpers/deviceId.js";

‎src/helpers/connectionOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MongoClientOptions } from "mongodb";
2-
import ConnectionString from "mongodb-connection-string-url";
2+
import {ConnectionString} from "mongodb-connection-string-url";
33

44
export interface AppNameComponents {
55
appName: string;

‎src/types/mongodb-connection-string-url.d.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

‎tsconfig.build.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
"typeRoots": ["./node_modules/@types", "./src/types"],
1818
"noImplicitReturns": true,
1919
"declaration": true,
20-
"declarationMap": true
20+
"declarationMap": true,
21+
"paths": {
22+
"mongodb-connection-string-url": [
23+
"./node_modules/mongodb-connection-string-url/lib/index.d.ts"
24+
]
25+
}
2126
},
2227
"include": ["src/**/*.ts"]
2328
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /