Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
lint: use const instead of var for ObjectId
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Dec 21, 2020
1 parent e5d2cd0 commit 1bfed78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ declare module 'mongoose' {
toObject(options?: ToObjectOptions & { flattenMaps?: boolean }): any;
}

var ObjectId: ObjectIdConstructor;
const ObjectId: ObjectIdConstructor;

class _ObjectId extends mongodb.ObjectID {
_id?: ObjectId;
Expand Down

0 comments on commit 1bfed78

Please sign in to comment.