[UnderScore] Update definitions of findIndex/findLastIndex by nallwhy · Pull Request #9711 · DefinitelyTyped/DefinitelyTyped

Conversation

@dt-bot

@nallwhy nallwhy changed the title Update definitions of findIndex/findLastIndex [UnderScore] Update definitions of findIndex/findLastIndex

Jun 19, 2016

@nallwhy

As there are many other methods that transform their predicates through _.iteratee, I'm gonna check them later.

mhegazy

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.

@nallwhy

Labels