Update index.d.ts

Make .lean() return Query<any> so we can properly cast it to whatever we need
This commit is contained in:
Art
2018-02-15 22:34:11 +00:00
committed by GitHub
parent 480cab7dcb
commit 6cd2cfa3ff

View File

@@ -1598,7 +1598,7 @@ declare module "mongoose" {
* getters/setters or other Mongoose magic applied.
* @param bool defaults to true
*/
lean(bool?: boolean): Query<object>;
lean(bool?: boolean): Query<any>;
/** Specifies the maximum number of documents the query will return. Cannot be used with distinct() */
limit(val: number): this;