Fixed arg type for facet function

This commit is contained in:
Alexandr Ni
2018-09-04 09:23:47 -04:00
parent 30661bcb49
commit a1ef1a70ce
+2 -2
View File
@@ -2340,7 +2340,7 @@ declare module "mongoose" {
* Appends a new $facet operator to this aggregate pipeline.
* @param arg $facet operator contents
*/
facet(arg: any): this;
facet(arg: { [outputField: string]: object[] }): this;
// If cursor option is on, could return an object
/** Executes the aggregate pipeline on the currently bound Model. */
@@ -2348,7 +2348,7 @@ declare module "mongoose" {
/** Execute the aggregation with explain */
explain(callback?: (err: any, result: T) => void): Promise<T>;
/**
* Appends a new custom $group operator to this aggregate pipeline.
* @param arg $group operator contents