From 6cd2cfa3ff55cd7ddb79d279e99c72d57a5eec0d Mon Sep 17 00:00:00 2001 From: Art Date: Thu, 15 Feb 2018 22:34:11 +0000 Subject: [PATCH] Update index.d.ts Make .lean() return Query so we can properly cast it to whatever we need --- types/mongoose/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index cb8ca38408..264060bb38 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -1598,7 +1598,7 @@ declare module "mongoose" { * getters/setters or other Mongoose magic applied. * @param bool defaults to true */ - lean(bool?: boolean): Query; + lean(bool?: boolean): Query; /** Specifies the maximum number of documents the query will return. Cannot be used with distinct() */ limit(val: number): this;