mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix size() when in chain()
This commit is contained in:
@@ -493,10 +493,11 @@ function strong_typed_values_tests() {
|
||||
return [r.title, true];
|
||||
}).object().value();
|
||||
|
||||
_(dictionaryLike).each((x) => {
|
||||
var x: number = _(dictionaryLike).chain().filter((x) => {
|
||||
console.log(x.title);
|
||||
console.log(x.value.toFixed());
|
||||
});
|
||||
return x.title == 'item1';
|
||||
}).size().value();
|
||||
|
||||
_.values<{title: string, value: number}>(dictionaryLike);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -2824,7 +2824,7 @@ interface _Chain<T> {
|
||||
* Wrapped type `any`.
|
||||
* @see _.size
|
||||
**/
|
||||
size(): _Chain<T>;
|
||||
size(): _ChainSingle<number>;
|
||||
|
||||
/*********
|
||||
* Arrays *
|
||||
|
||||
Reference in New Issue
Block a user