-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Services Providers
-
None
-
5
-
Not Needed
-
Iteration Rambutan
We currently define a bunch of typescript types that are the same as the driver (cursor, various options, connect info, etc.) that the driver now defines in ts. investigate if we can replace our own types with direct use of the driver types using "import type" plus the library for manipulating types (https://www.typescriptlang.org/docs/handbook/utility-types.html)
If we can get rid of the double definitions, we will save a lot of code!
Open questions: make sure it's browser safe to import the driver types, make sure there's a released version of the driver with these types that we can use, make sure we allow ourselves the ability to extend those types in sp-core in the future when we have non-node-driver based service providers.
- related to
-
MONGOSH-467 Update driver to 4.0
- Closed