Skip to content

Commit 4e29069

Browse files
Merge pull request #6575 from Microsoft/fixInt8ArrayIncludes
Fix 'includes' method in 'Int8Array'.
2 parents f4d4453 + d5a585f commit 4e29069

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lib/es7.d.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ interface Array<T> {
22
/**
33
* Determines whether an array includes a certain element, returning true or false as appropriate.
44
* @param searchElement The element to search for.
5-
* @param fromIndex The position in this array at which to begin searching for searchElement.
5+
* @param fromIndex The position in this array at which to begin searching for searchElement.
66
*/
77
includes(searchElement: T, fromIndex?: number): boolean;
88
}
@@ -11,16 +11,16 @@ interface Int8Array {
1111
/**
1212
* Determines whether an array includes a certain element, returning true or false as appropriate.
1313
* @param searchElement The element to search for.
14-
* @param fromIndex The position in this array at which to begin searching for searchElement.
14+
* @param fromIndex The position in this array at which to begin searching for searchElement.
1515
*/
16-
includes(searchElement: Int8Array, fromIndex?: number): boolean;
16+
includes(searchElement: number, fromIndex?: number): boolean;
1717
}
1818

1919
interface Uint8Array {
2020
/**
2121
* Determines whether an array includes a certain element, returning true or false as appropriate.
2222
* @param searchElement The element to search for.
23-
* @param fromIndex The position in this array at which to begin searching for searchElement.
23+
* @param fromIndex The position in this array at which to begin searching for searchElement.
2424
*/
2525
includes(searchElement: number, fromIndex?: number): boolean;
2626
}
@@ -29,7 +29,7 @@ interface Uint8ClampedArray {
2929
/**
3030
* Determines whether an array includes a certain element, returning true or false as appropriate.
3131
* @param searchElement The element to search for.
32-
* @param fromIndex The position in this array at which to begin searching for searchElement.
32+
* @param fromIndex The position in this array at which to begin searching for searchElement.
3333
*/
3434
includes(searchElement: number, fromIndex?: number): boolean;
3535
}
@@ -38,7 +38,7 @@ interface Int16Array {
3838
/**
3939
* Determines whether an array includes a certain element, returning true or false as appropriate.
4040
* @param searchElement The element to search for.
41-
* @param fromIndex The position in this array at which to begin searching for searchElement.
41+
* @param fromIndex The position in this array at which to begin searching for searchElement.
4242
*/
4343
includes(searchElement: number, fromIndex?: number): boolean;
4444
}
@@ -47,7 +47,7 @@ interface Uint16Array {
4747
/**
4848
* Determines whether an array includes a certain element, returning true or false as appropriate.
4949
* @param searchElement The element to search for.
50-
* @param fromIndex The position in this array at which to begin searching for searchElement.
50+
* @param fromIndex The position in this array at which to begin searching for searchElement.
5151
*/
5252
includes(searchElement: number, fromIndex?: number): boolean;
5353
}
@@ -56,7 +56,7 @@ interface Int32Array {
5656
/**
5757
* Determines whether an array includes a certain element, returning true or false as appropriate.
5858
* @param searchElement The element to search for.
59-
* @param fromIndex The position in this array at which to begin searching for searchElement.
59+
* @param fromIndex The position in this array at which to begin searching for searchElement.
6060
*/
6161
includes(searchElement: number, fromIndex?: number): boolean;
6262
}
@@ -65,7 +65,7 @@ interface Uint32Array {
6565
/**
6666
* Determines whether an array includes a certain element, returning true or false as appropriate.
6767
* @param searchElement The element to search for.
68-
* @param fromIndex The position in this array at which to begin searching for searchElement.
68+
* @param fromIndex The position in this array at which to begin searching for searchElement.
6969
*/
7070
includes(searchElement: number, fromIndex?: number): boolean;
7171
}
@@ -74,7 +74,7 @@ interface Float32Array {
7474
/**
7575
* Determines whether an array includes a certain element, returning true or false as appropriate.
7676
* @param searchElement The element to search for.
77-
* @param fromIndex The position in this array at which to begin searching for searchElement.
77+
* @param fromIndex The position in this array at which to begin searching for searchElement.
7878
*/
7979
includes(searchElement: number, fromIndex?: number): boolean;
8080
}
@@ -83,7 +83,7 @@ interface Float64Array {
8383
/**
8484
* Determines whether an array includes a certain element, returning true or false as appropriate.
8585
* @param searchElement The element to search for.
86-
* @param fromIndex The position in this array at which to begin searching for searchElement.
86+
* @param fromIndex The position in this array at which to begin searching for searchElement.
8787
*/
8888
includes(searchElement: number, fromIndex?: number): boolean;
8989
}

0 commit comments

Comments
 (0)