mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
requested changes
This commit is contained in:
Vendored
+2
-3
@@ -2435,9 +2435,8 @@ declare module "mongoose" {
|
||||
* If a callback is not passed, the aggregate itself is returned.
|
||||
* @param aggregations pipeline operator(s) or operator array
|
||||
*/
|
||||
aggregate(): Aggregate<any[]>;
|
||||
aggregate(aggregations: any[]): Aggregate<any[]>;
|
||||
aggregate(aggregations: any[], cb: Function): Promise<any[]>;
|
||||
aggregate(aggregations?: any[]): Aggregate<any[]>;
|
||||
aggregate(aggregations: any[], cb?: Function): Promise<any[]>;
|
||||
|
||||
/** Counts number of matching documents in a database collection. */
|
||||
count(conditions: any, callback?: (err: any, count: number) => void): Query<number>;
|
||||
|
||||
Reference in New Issue
Block a user