mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Merge pull request #10499 from simonxca/patch-mongoose
Mongoose commented out MongooseArray.sort()
This commit is contained in:
4
mongoose/mongoose.d.ts
vendored
4
mongoose/mongoose.d.ts
vendored
@@ -1122,7 +1122,9 @@ declare module "mongoose" {
|
||||
* potentially overwritting any changes that happen between when you retrieved the object
|
||||
* and when you save it.
|
||||
*/
|
||||
sort(compareFn?: (a: T, b: T) => number): T[];
|
||||
// some lib.d.ts have return type "this" and others have return type "T[]"
|
||||
// which causes errors. Let the inherited array provide the sort() method.
|
||||
//sort(compareFn?: (a: T, b: T) => number): T[];
|
||||
|
||||
/**
|
||||
* Wraps Array#splice with proper change tracking and casting.
|
||||
|
||||
Reference in New Issue
Block a user