UNPKG

263 BTypeScriptView Raw
1// this import is required so that types get merged instead of completely overwritten
2import 'bson';
3
4declare module 'bson' {
5 interface ObjectId {
6 /** Mongoose automatically adds a conveniency "_id" getter on the base ObjectId class */
7 _id: this;
8 }
9}