Skip to content

Type for ObjectID does not match mongodb ObjectId #52

@dcantatore

Description

@dcantatore

If you are using a typescript project and are trying to use the bson-objectid imported ObjectId it is missing 4 properties.

TS2739: Type 'ObjectID' is missing the following properties from type 'ObjectId': _bsontype, generationTime, toJSON,

Listed for convenience:

_bsontype
generationTime
toJSON
inspect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions