Skip to content

Commit ff29576

Browse files
authored
fix(mongodb): remove broken type export V4Connection (#1644)
The type `V4Connection` re-introduced in #1170 is missing any type definitions or imports for `Document`, breaking the build with Typescript strict mode. `V4Connection` in `types.ts` is not referenced anywhere (the type definition in `internal-types.ts` is used. So lets just drop this type definition. BREAKING CHANGE: removes the broken exported type `V4Connection`. Fixes #1639 Signed-off-by: Simon Berz <[email protected]>
1 parent d83b57b commit ff29576

File tree

1 file changed

+0
-11
lines changed
  • plugins/node/opentelemetry-instrumentation-mongodb/src

1 file changed

+0
-11
lines changed

plugins/node/opentelemetry-instrumentation-mongodb/src/types.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,3 @@ export enum MongodbCommandType {
6969
COUNT = 'count',
7070
UNKNOWN = 'unknown',
7171
}
72-
73-
// https://github.com/mongodb/node-mongodb-native/blob/v4.2.2/src/cmap/connection.ts
74-
export type V4Connection = {
75-
id: number | '<monitor>';
76-
command(
77-
ns: any,
78-
cmd: Document,
79-
options: undefined | unknown,
80-
callback: any
81-
): void;
82-
};

0 commit comments

Comments
 (0)