-
Type: Task
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
NODE-4037 Description
What problem are you facing?
The types for MongoClient is missing at least the Topology property in the TypeScript definition file.
What driver and relevant dependency versions are you using?
mongodb: ^4.4.0
Steps to reproduce?
Install specified version:
const connection = ...
{{}}
connection.topology.isConnected()
I should be able to do this according to the documentation:
https://mongodb.github.io/node-mongodb-native/4.4/classes/MongoClient.html#topology
https://mongodb.github.io/node-mongodb-native/4.4/classes/Topology.html#isConnected
- is depended on by
-
NODE-4037 Published types for MongoClient are incorrect
- Closed