mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #837 from basarat/patch-4
Based on http://underscorejs.org/
This commit is contained in:
Vendored
+3
-3
@@ -368,11 +368,11 @@ declare module _ {
|
||||
* property values.
|
||||
* @param list The list to pluck elements out of that have the property `propertyName`.
|
||||
* @param propertyName The property to look for on each element within `list`.
|
||||
* @return The list of elements within `list` that have the property `propertyName`.
|
||||
* @return The list of values for `propertyName` for each element within `list`
|
||||
**/
|
||||
export function pluck<T extends {}>(
|
||||
list: Collection<T>,
|
||||
propertyName: string): T[];
|
||||
propertyName: string): any[];
|
||||
|
||||
/**
|
||||
* Returns the maximum value in list.
|
||||
@@ -2852,4 +2852,4 @@ interface _Chain<T> {
|
||||
|
||||
declare module "underscore" {
|
||||
export = _;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user