mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Annotate arrays correctly
This commit is contained in:
Vendored
+1
-1
@@ -560,7 +560,7 @@ declare module _ {
|
||||
|
||||
pluck(
|
||||
list: _.List<any>,
|
||||
propertyName: string): any;
|
||||
propertyName: string): any[];
|
||||
|
||||
/**
|
||||
* Returns the maximum value in list.
|
||||
|
||||
@@ -173,7 +173,7 @@ _.contains([1, 2, 3], 3, 1);
|
||||
_.invoke([[5, 1, 7], [3, 2, 1]], 'sort');
|
||||
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/33479
|
||||
var foo: any = {'a': 1, 'b': 2};
|
||||
var foo: any[] = [{'a': 1, 'b': 2}];
|
||||
_.pluck(foo, 'a');
|
||||
|
||||
var stooges = [{ name: 'moe', age: 40 }, { name: 'larry', age: 50 }, { name: 'curly', age: 60 }];
|
||||
|
||||
Reference in New Issue
Block a user