mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-30 18:24:26 +00:00
Update index.d.ts
Make .lean() return Query<any> so we can properly cast it to whatever we need
This commit is contained in:
2
types/mongoose/index.d.ts
vendored
2
types/mongoose/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user