-
Type: Bug
-
Resolution: Unresolved
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: None
The public types emitted for bson.d.ts are wrong:
Unable to find source-code formatter for language: typescript. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
export declare namespace BSON { const ObjectId: typeof bson.ObjectID; // notice the capital D in ID type ObjectId = bson.ObjectId; const ObjectID: typeof bson.ObjectID; type ObjectID = bson.ObjectID; // ... }
This is really weird since we're importing the right type from the namespace:
We should be able to upgrade to bson@6 by now and this will fix the issue since that has removed ObjectID (capital D) entirely.
- depends on
-
NODE-6074 Avoiding top-level awaits in `bson`
- Closed