[UnderScore] Update definitions of findIndex/findLastIndex by nallwhy · Pull Request #9711 · DefinitelyTyped/DefinitelyTyped
Conversation
nallwhy
changed the title
Update definitions of findIndex/findLastIndex
[UnderScore] Update definitions of findIndex/findLastIndex
As there are many other methods that transform their predicates through _.iteratee, I'm gonna check them later.
| predicate: _.ListIterator<T, boolean>, | ||
| context?: any): number; | ||
|
|
||
| findIndex<T, U extends {}>( |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
U extends {} means the same thing as just U. it is rather confusing to use this for some declarations and not others. so i would recommend removing it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters