mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
[@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
This commit is contained in:
committed by
GitHub
parent
7eae3c4d77
commit
1cf79822be
2
types/mongoose/index.d.ts
vendored
2
types/mongoose/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user