build: fix our copy of Array#find typing (#27742)

It should be nullable, matching the lib.es2015.d.ts from TypeScript

PR Close #27742
This commit is contained in:
Alex Eagle
2018-12-18 16:06:25 -08:00
committed by Matias Niemelä
parent f48a00fb0c
commit b1560f7357
6 changed files with 28 additions and 28 deletions

View File

@ -32,7 +32,7 @@ interface Array<T> {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T;
find(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T|undefined;
/**
* Returns the this object after filling the section identified by start and end with value
* @param value value to fill array section with