diff --git a/index.d.ts b/index.d.ts index 96be6e03dc1..dbadf47b89a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2258,6 +2258,18 @@ declare module "mongoose" { /** Appends new custom $lookup operator to this aggregate pipeline. */ lookup(options: any): this; + /** + * Appends a new custom $match operator to this aggregate pipeline. + * @param arg $match operator contents + */ + match(arg: any): this; + + /** + * Binds this aggregate to a model. + * @param model the model to which the aggregate is to be bound + */ + model(model: any): this; + /** Returns the current pipeline */ pipeline(): any[];