Skip to content

Commit 8f2d531

Browse files
authored
Merge pull request #12680 from aluanhaddad/12678
Add ReadonlyArray<T>.includes to es2016.array.include.d.ts
2 parents 225d6d6 + ee08943 commit 8f2d531

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/lib/es2016.array.include.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ interface Array<T> {
77
includes(searchElement: T, fromIndex?: number): boolean;
88
}
99

10+
interface ReadonlyArray<T> {
11+
/**
12+
* Determines whether an array includes a certain element, returning true or false as appropriate.
13+
* @param searchElement The element to search for.
14+
* @param fromIndex The position in this array at which to begin searching for searchElement.
15+
*/
16+
includes(searchElement: T, fromIndex?: number): boolean;
17+
}
18+
1019
interface Int8Array {
1120
/**
1221
* Determines whether an array includes a certain element, returning true or false as appropriate.

0 commit comments

Comments
 (0)