-
Notifications
You must be signed in to change notification settings - Fork 606
Open
Labels
First-Good-IssueFirst Good Issue - Relatively easy issue for new contributersFirst Good Issue - Relatively easy issue for new contributers
Description
The public types emitted for bson.d.ts
are wrong:
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:
realm-js/packages/realm/src/bson.ts
Lines 27 to 30 in 1e1e48a
export const ObjectId = bson.ObjectId; | |
export type ObjectId = bson.ObjectId; | |
export const ObjectID = bson.ObjectID; | |
export type ObjectID = bson.ObjectID; |
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.
Metadata
Metadata
Assignees
Labels
First-Good-IssueFirst Good Issue - Relatively easy issue for new contributersFirst Good Issue - Relatively easy issue for new contributers