mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +08:00
fix overriding comparator for Backbone
having the "sort" version of the comparator return a number, while technically correct according to the Backbone documentation, does not actually work when the "sortBy" version of the comparator is used.
This commit is contained in:
1 parent
730db3556b
commit
5b6f9e9f78
1 file changed
+1
-1
Vendored
+1
-1
@@ -152,7 +152,7 @@ declare module Backbone {
|
||||
fetch(options?: CollectionFetchOptions): JQueryXHR;
|
||||
|
||||
comparator(element: Model): any;
|
||||
comparator(compare: Model, to?: Model): number;
|
||||
comparator(compare: Model, to?: Model): any;
|
||||
|
||||
add(model: Model, options?: AddOptions);
|
||||
add(models: Model[], options?: AddOptions);
|
||||
|
||||
Reference in new issue
Block a user