Skip to content

Commit 9ff425b

Browse files
committed
Fix issue 10843
1 parent 707d61d commit 9ff425b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/lib.es2015.core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ interface Array<T> {
3737
* @param thisArg If provided, it will be used as the this value for each invocation of
3838
* predicate. If it is not provided, undefined is used instead.
3939
*/
40-
findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
40+
findIndex(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): number;
4141

4242
/**
4343
* Returns the this object after filling the section identified by start and end with value

lib/lib.es6.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4143,7 +4143,7 @@ interface Array<T> {
41434143
* @param thisArg If provided, it will be used as the this value for each invocation of
41444144
* predicate. If it is not provided, undefined is used instead.
41454145
*/
4146-
findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
4146+
findIndex(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): number;
41474147

41484148
/**
41494149
* Returns the this object after filling the section identified by start and end with value

src/lib/es2015.core.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Array<T> {
2121
* @param thisArg If provided, it will be used as the this value for each invocation of
2222
* predicate. If it is not provided, undefined is used instead.
2323
*/
24-
findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
24+
findIndex(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): number;
2525

2626
/**
2727
* Returns the this object after filling the section identified by start and end with value
@@ -368,7 +368,7 @@ interface ReadonlyArray<T> {
368368
* @param thisArg If provided, it will be used as the this value for each invocation of
369369
* predicate. If it is not provided, undefined is used instead.
370370
*/
371-
findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
371+
findIndex(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): number;
372372
}
373373

374374
interface RegExp {

0 commit comments

Comments
 (0)