From 1cf79822bed312df0c55cd86a4f81bd6de2843f6 Mon Sep 17 00:00:00 2001 From: "Felipe A. Hernandez" Date: Wed, 20 Jun 2018 11:31:32 +0200 Subject: [PATCH] [@types/mongoose] Add property for the not-so-well documented Schema.prototype.query "query-helper" property. References: https://github.com/Automattic/mongoose/blob/master/lib/schema.js#L81 http://mongoosejs.com/docs/guide.html#query-helpers --- types/mongoose/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index d67c143da1..0c46add635 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -791,6 +791,8 @@ declare module "mongoose" { methods: any; /** Object of currently defined statics on this schema. */ statics: any; + /** Object of currently defined query helpers on this schema. */ + query: any; /** The original object passed to the schema constructor */ obj: any; }