From 1bfed7860314950ca3702cf84d762cd18f0b407e Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 21 Dec 2020 10:32:07 +0100 Subject: [PATCH] lint: use const instead of var for ObjectId --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b5e2af77a8d..06a97d9e9b8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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;