@@ -10,7 +10,7 @@ interface Array<T> {
1010 * @param thisArg If provided, it will be used as the this value for each invocation of
1111 * predicate. If it is not provided, undefined is used instead.
1212 */
13- find ( predicate : ( value : T , index : number , obj : Array < T > ) => boolean , thisArg ?: any ) : T ;
13+ find ( predicate : ( value : T , index : number , obj : Array < T > ) => boolean , thisArg ?: any ) : T | undefined ;
1414
1515 /**
1616 * Returns the index of the first element in the array where predicate is true, and undefined
@@ -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 ) => boolean , thisArg ?: any ) : number | undefined ;
2525
2626 /**
2727 * Returns the this object after filling the section identified by start and end with value
@@ -379,7 +379,7 @@ interface String {
379379 * If there is no element at that position, the result is undefined.
380380 * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
381381 */
382- codePointAt ( pos : number ) : number ;
382+ codePointAt ( pos : number ) : number | undefined ;
383383
384384 /**
385385 * Returns true if searchString appears as a substring of the result of converting this
0 commit comments