mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Also fix _(dictionary)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user