mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-27 04:20:02 +00:00
adds comments explaining ModelQuery
This commit is contained in:
5
mongoose/mongoose.d.ts
vendored
5
mongoose/mongoose.d.ts
vendored
@@ -1262,6 +1262,11 @@ declare module "mongoose" {
|
||||
* http://mongoosejs.com/docs/api.html#query-js
|
||||
*/
|
||||
type Query<T> = ModelQuery<T, any>;
|
||||
|
||||
/*
|
||||
* Query.find() will return Query<Model<T>[]> however we need the
|
||||
* type T to create this so we save T in another parameter.
|
||||
*/
|
||||
class ModelQuery<T, ModelType> extends mquery {
|
||||
/**
|
||||
* Specifies a javascript function or expression to pass to MongoDBs query system.
|
||||
|
||||
Reference in New Issue
Block a user