Also fix _(dictionary)

This commit is contained in:
Andrei Alecu
2016-01-07 16:33:41 +02:00
parent 1e3835e65e
commit dfe3e8d966
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -494,5 +494,9 @@ function strong_typed_values_tests() {
return [r.title, true];
}).object().value();
_(dictionaryLike).each((x) => {
console.log(x.title);
console.log(x.value.toFixed());
})
_.values<{title: string, value: number}>(dictionaryLike);
}
+1
View File
@@ -76,6 +76,7 @@ interface UnderscoreStatic {
* as the first parameter can be invoked through this function.
* @param key First argument to Underscore object functions.
**/
<T>(value: _.Dictionary<T>): Underscore<T>;
<T>(value: Array<T>): Underscore<T>;
<T>(value: T): Underscore<T>;