From fc80a44bfeb69a8de8eb2883ee1711763079823d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=BCmay=20=C3=87eber?= Date: Fri, 16 Feb 2018 13:34:40 +0300 Subject: [PATCH] requested changes --- types/mongoose/index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index da4714d59f..122de69b7f 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -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; - aggregate(aggregations: any[]): Aggregate; - aggregate(aggregations: any[], cb: Function): Promise; + aggregate(aggregations?: any[]): Aggregate; + aggregate(aggregations: any[], cb?: Function): Promise; /** Counts number of matching documents in a database collection. */ count(conditions: any, callback?: (err: any, count: number) => void): Query;