Files
vscode/src/typings/lib.array-ext.d.ts
T
Matt Bierner a767e5e838 Add isArray overload to handle simple case where input is a readonly array
isArray should keep the output as readonly
2019-06-13 13:43:54 -07:00

11 lines
606 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
interface ArrayConstructor {
isArray<T>(arg: ReadonlyArray<T> | null | undefined): arg is ReadonlyArray<T>;
isArray<T>(arg: Array<T> | null | undefined): arg is Array<T>;
isArray(arg: any): arg is Array<any>;
isArray<T>(arg: any): arg is Array<T>;
}