Skip to content

Commit

Permalink
Fix incorrect typescript type annotation which was caught by the type…
Browse files Browse the repository at this point in the history
…script compiler due to newer typings definitions for lodash library.

Change: 123971815
  • Loading branch information
dsmilkov authored and tensorflower-gardener committed Jun 3, 2016
1 parent 763b6d8 commit b1bf065
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export function detect(h, verifyTemplate): {[templateId: string]: string[]} {
// maximum differentiation.
return <{[templateId: string]: string[]}>_(templates)
.pairs()
.sortBy(function(pair: {level: number, nodes: string[]}) {
.sortBy(function(pair: {level: number, nodes: string[]}[]) {
return pair[1].level;
})
.map(function(pair: {level: number, nodes: string[]}) {
.map(function(pair: {level: number, nodes: string[]}[]) {
return [pair[0], pair[1].nodes];
})
.object()
Expand Down

0 comments on commit b1bf065

Please sign in to comment.