requested changes

This commit is contained in:
Tümay Çeber
2018-02-16 13:34:40 +03:00
parent ecfbd369d7
commit fc80a44bfe
+2 -3
View File
@@ -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>;