Commit Graph
45 Commits
Author SHA1 Message Date
Simon d4724f8c3e adds ability to define dynamic static methods on model instances fixes #5193 2016-07-21 16:11:59 -04:00
Simon 4254528ff3 replaced interfaces with type references for native classes 2016-07-21 15:51:06 -04:00
Simon 053910c692 improve type reference by using type= instead of extending interfaces 2016-07-21 11:14:44 -04:00
Simon 76eba7e5e4 make MongoosePromise errors occur only in one place 2016-07-21 11:02:26 -04:00
Simon e3865142f9 fix type incompatibility with array.sort() 2016-07-21 10:47:18 -04:00
Simon e127a8c9a6 move constructor out of abstract interface 2016-07-20 08:40:19 -04:00
Simon 382b31d6db modifies mongoose Collection to inherit from mongodb.collection interface 2016-07-20 08:29:33 -04:00
Simon ee02fbfb77 implements plugging in custom promise libaries fixes #9424 2016-07-19 20:33:45 -04:00
Simon b301b3e81c fixes return type of mongoosethenable 2016-07-16 22:39:41 -04:00
Simon 1b755999ed fixes return types of some promises that were missed 2016-07-16 22:28:34 -04:00
Simon 7e4710a23c simplifies mongoose.Promise by removing unecessary 2nd type parameter 2016-07-15 22:08:56 -04:00
Simon 7ba164ada3 fixes return types of mongoose promises 2016-07-15 21:40:32 -04:00
Simon d8af314e45 fixes return types of MongooseArray 2016-07-14 22:59:54 -04:00
Simon ae5432ee12 adds test cases for model type parameters 2016-07-14 20:23:21 -04:00
Simon 1f09db13e7 adds comments explaining ModelQuery 2016-07-14 20:06:42 -04:00
Simon c85a7d624b adds type parameter for mongoose.Model, fixes #10110 2016-07-14 20:06:41 -04:00
Simon XiongandMohamed Hegazy c6757a1399 Updates to Mongoose 4.5.x (#10084)
* updated to mongoose 4.x and beyond, closes #2904 closes #3345 closes #4219 closes #4262 closes #4773 closes #5791 closes #6957 closes #8248 closes #9423 closes #9547

* add to contributor list

* fixes travis errors

* fix header issue
2016-07-12 23:23:30 -07:00
Cao JiannanandHoriuchi_H 43449c604f Mongoose - fix post callback (#9850)
* fix post function

* fix tests
2016-06-29 10:46:09 +09:00
frogcjn fc9c554c1e fix orders 2016-06-24 11:22:37 +08:00
frogcjn a57dc40225 fix HookNext/HookDone 2016-06-24 11:20:22 +08:00
frogcjn 54b329f9da fix to mark HookNextFunction/HookDoneFunction 2016-06-24 11:14:49 +08:00
frogcjn cb77aeaff2 merge overloads for errorCb 2016-06-24 11:09:55 +08:00
frogcjn 8d88700601 fix errors in tests 2016-06-24 10:56:29 +08:00
frogcjn 46098950dd add methods and statics 2016-06-24 10:45:53 +08:00
frogcjn e0cd8c1609 add details for hook methods 2016-06-24 10:29:13 +08:00
Christian HotzandHoriuchi_H 79e405f082 add ordered and unordered bulk operations to mongoose Collections interface (#9596) 2016-06-14 18:07:25 +09:00
Luca RoverellliandHoriuchi_H 1be72cdce3 Added find method with no args (#9484) 2016-06-06 00:13:47 +09:00
Thomas PuttkamerandHoriuchi_H 5e1ca2b9ef fixing a Promise bug in type definition (#9334)
* fixing a Promise bug in  type definition

* add Promise to Mongoose object
2016-05-17 12:39:07 +09:00
Michael SeemannandMasahiro Wakame 402d392c68 add static method isValid to type ObjectId. see https://github.com/mongodb/js-bson/blob/master/lib/bson/objectid.js (#9213) 2016-05-06 03:55:35 +09:00
vvakame 56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
vvakame 4de74cb527 normalize line ending (CRLF -> LF) 2016-02-16 01:20:30 +09:00
mainnika cebde64b3a mongoose -- fix ctor 2016-02-09 17:37:16 +05:00
John Hasselkus 97ec10cb6c mongoose.d.ts Document interface should define _id as any
In the Document interface definition of mongoose.d.ts, the _id field
definition of _id: Types.ObjectId was wrong, as it can be any type. This
commit changes the definition to _id: any to allow interfaces that
extend Document to refine the definition of _id as appropriate to match
the schema of the model/collection.
2016-01-12 10:14:33 -06:00
grkuntzmd 8783a67ef1 Corrected signature for mongoose.geoNear 2016-01-04 09:33:21 -05:00
Daniel Rosenwasser e4484309b0 Add 'mongos' property to interface in 'mongoose'. 2015-08-13 12:05:30 -07:00
Gary Hamilton fdc6193b12 doc for Model constructor (new) should be optional 2015-07-01 15:00:14 +01:00
Lazutkin Dmitry 7776946d2f Fixes borisyankov/DefinitelyTyped#4742 ctor definition of mongoose::Types::ObjectId 2015-06-26 14:13:51 +03:00
Radosław Eichler c8d056a361 added test for fixed create method 2015-05-18 14:53:28 +02:00
Radosław Eichler 708a29cbf5 fixed Model<T>.create method returned Promise type 2015-05-18 14:49:55 +02:00
Radosław Eichler 36e72c193f added missing ObjectId methods, changed Document _id property from string to ObjectId 2015-05-16 16:31:13 +02:00
Michael Hohl 775c2cbc24 Model<T> extends NodeJS.EventEmitter - see #3968 2015-03-26 10:26:58 +01:00
doronbrikman d4b07c491e Update mongoose.d.ts
Adjust model's function signature to be able to get one argument
2015-01-13 17:39:27 +02:00
psnider 114d68a072 Added mongoose.Types.ObjectId.toHexString() 2014-12-14 21:47:05 +00:00
Quenio dos Santos b23ce3c58a Setting optional value 2014-09-27 21:26:18 -03:00
Horiuchi_H 0a86e76890 add mongoose type file 2014-05-01 19:41:46 +09:00