Skip to content

Commit df5e176

Browse files
committed
update findIndex for es5 typed arrays
1 parent 62f7c8a commit df5e176

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/lib/es5.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ interface Int8Array {
15391539
* @param thisArg If provided, it will be used as the this value for each invocation of
15401540
* predicate. If it is not provided, undefined is used instead.
15411541
*/
1542-
findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
1542+
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
15431543

15441544
/**
15451545
* Performs the specified action for each element in an array.
@@ -1812,7 +1812,7 @@ interface Uint8Array {
18121812
* @param thisArg If provided, it will be used as the this value for each invocation of
18131813
* predicate. If it is not provided, undefined is used instead.
18141814
*/
1815-
findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
1815+
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
18161816

18171817
/**
18181818
* Performs the specified action for each element in an array.
@@ -2086,7 +2086,7 @@ interface Uint8ClampedArray {
20862086
* @param thisArg If provided, it will be used as the this value for each invocation of
20872087
* predicate. If it is not provided, undefined is used instead.
20882088
*/
2089-
findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2089+
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
20902090

20912091
/**
20922092
* Performs the specified action for each element in an array.
@@ -2359,7 +2359,7 @@ interface Int16Array {
23592359
* @param thisArg If provided, it will be used as the this value for each invocation of
23602360
* predicate. If it is not provided, undefined is used instead.
23612361
*/
2362-
findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2362+
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
23632363

23642364
/**
23652365
* Performs the specified action for each element in an array.
@@ -2633,7 +2633,7 @@ interface Uint16Array {
26332633
* @param thisArg If provided, it will be used as the this value for each invocation of
26342634
* predicate. If it is not provided, undefined is used instead.
26352635
*/
2636-
findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2636+
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
26372637

26382638
/**
26392639
* Performs the specified action for each element in an array.
@@ -2906,7 +2906,7 @@ interface Int32Array {
29062906
* @param thisArg If provided, it will be used as the this value for each invocation of
29072907
* predicate. If it is not provided, undefined is used instead.
29082908
*/
2909-
findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2909+
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
29102910

29112911
/**
29122912
* Performs the specified action for each element in an array.
@@ -3179,7 +3179,7 @@ interface Uint32Array {
31793179
* @param thisArg If provided, it will be used as the this value for each invocation of
31803180
* predicate. If it is not provided, undefined is used instead.
31813181
*/
3182-
findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3182+
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
31833183

31843184
/**
31853185
* Performs the specified action for each element in an array.
@@ -3452,7 +3452,7 @@ interface Float32Array {
34523452
* @param thisArg If provided, it will be used as the this value for each invocation of
34533453
* predicate. If it is not provided, undefined is used instead.
34543454
*/
3455-
findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3455+
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
34563456

34573457
/**
34583458
* Performs the specified action for each element in an array.
@@ -3726,7 +3726,7 @@ interface Float64Array {
37263726
* @param thisArg If provided, it will be used as the this value for each invocation of
37273727
* predicate. If it is not provided, undefined is used instead.
37283728
*/
3729-
findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3729+
findIndex(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
37303730

37313731
/**
37323732
* Performs the specified action for each element in an array.

0 commit comments

Comments
 (0)