mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
underscore _.findIndex now returns the correct type (number instead of the element type)
This commit is contained in:
2
underscore/underscore.d.ts
vendored
2
underscore/underscore.d.ts
vendored
@@ -278,7 +278,7 @@ interface UnderscoreStatic {
|
||||
findIndex<T>(
|
||||
list: _.List<T>,
|
||||
iterator: _.ListIterator<T, boolean>,
|
||||
context?: any): T;
|
||||
context?: any): number;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user