Skip to content

Commit

Permalink
Add missing string iterator declaration for _.sortBy
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranayub committed Aug 17, 2016
1 parent 8fbf6cb commit 9d5b115
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions build/underscore-ko.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ interface KnockoutObservableArrayFunctions<T> {
* Mutator version of `_.sortBy`
*/
sortBy_<TSort>(iterator?: _.ListIterator<T, TSort>, context?: any): T[];
/**
* Mutator version of `_.sortBy`
*/
sortBy_(iterator: string, context?: any): T[];
/**
* Mutator version of `_.groupBy`
*/
Expand Down
2 changes: 1 addition & 1 deletion build/underscore-ko.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/underscore-ko.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "underscore-ko",
"description": "Dead simple utility that attaches Underscore.js array and collection functions (and mutators) to Knockout.js observable arrays.",
"version": "1.8.3",
"version": "1.8.3.1",
"author": "Kamran Ayub <http://kamranicus.com>",
"homepage": "https://github.com/kamranayub/UnderscoreKO",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,10 @@ interface KnockoutObservableArrayFunctions<T> {
* Mutator version of `_.sortBy`
*/
sortBy_<TSort>(iterator?: _.ListIterator<T, TSort>, context?: any): T[];
/**
* Mutator version of `_.sortBy`
*/
sortBy_(iterator: string, context?: any): T[];
/**
* Mutator version of `_.groupBy`
*/
Expand Down

0 comments on commit 9d5b115

Please sign in to comment.