mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #12666 from asurinov/master
[underscore] Fixed _.findKey return type. Added overload with List<T> for…
This commit is contained in:
Vendored
+2
-2
@@ -3670,8 +3670,8 @@ interface UnderscoreStatic {
|
||||
* @param predicate Predicate function.
|
||||
* @param context `this` object in `iterator`, optional.
|
||||
*/
|
||||
findKey<T>(obj: _.Dictionary<T>, predicate: _.ObjectIterator<T, boolean>, context? : any): T
|
||||
|
||||
findKey<T>(obj: _.Dictionary<T>, predicate: _.ObjectIterator<T, boolean>, context? : any): string;
|
||||
|
||||
/**
|
||||
* Return a copy of the object, filtered to only have values for the whitelisted keys
|
||||
* (or array of valid keys).
|
||||
|
||||
Reference in New Issue
Block a user