From a1ef1a70ce5a47ea49652f76bacf968a13cefd81 Mon Sep 17 00:00:00 2001 From: Alexandr Ni Date: Tue, 4 Sep 2018 09:23:47 -0400 Subject: [PATCH] Fixed arg type for facet function --- types/mongoose/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index cd2da11312..1cd9d7c5b9 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -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; - + /** * Appends a new custom $group operator to this aggregate pipeline. * @param arg $group operator contents