mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 19:59:23 -05:00
Merge pull request #3492 from Microsoft/useTypePredicatesInLib
Define Array.isArray using a type predicate
This commit is contained in:
2
src/lib/core.d.ts
vendored
2
src/lib/core.d.ts
vendored
@@ -1150,7 +1150,7 @@ interface ArrayConstructor {
|
||||
(arrayLength?: number): any[];
|
||||
<T>(arrayLength: number): T[];
|
||||
<T>(...items: T[]): T[];
|
||||
isArray(arg: any): boolean;
|
||||
isArray(arg: any): arg is Array<any>;
|
||||
prototype: Array<any>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user