Skip to content

Commit 34e78e6

Browse files
authored
The optional this should be readonly too.
1 parent 3446557 commit 34e78e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/es2015.core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ interface ReadonlyArray<T> {
353353
* @param thisArg If provided, it will be used as the this value for each invocation of
354354
* predicate. If it is not provided, undefined is used instead.
355355
*/
356-
find(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T | undefined;
356+
find(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, thisArg?: any): T | undefined;
357357

358358
/**
359359
* Returns the index of the first element in the array where predicate is true, and undefined

0 commit comments

Comments
 (0)