mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
[mongoose] Modified methods "lean" (#40212)
The type of the returned parameter is determined from Any to T
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
f3a2beb1fd
commit
c74f860f8b
Vendored
+1
-1
@@ -2000,7 +2000,7 @@ declare module "mongoose" {
|
||||
* getters/setters or other Mongoose magic applied.
|
||||
* @param {Boolean|Object} bool defaults to true
|
||||
*/
|
||||
lean(bool?: boolean | object): Query<any> & QueryHelpers;
|
||||
lean<T>(bool?: boolean | object): Query<T> & QueryHelpers;
|
||||
|
||||
/** 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