Splice can take a number array as an argument for 2D arrays (#27239)

This commit is contained in:
mattmm3d
2018-07-20 18:00:19 -07:00
committed by Wesley Wigham
parent 0575e7dbc3
commit 9b47d926c6
+2 -1
View File
@@ -1,6 +1,7 @@
// Type definitions for numjs 0.14
// Project: https://github.com/nicolaspanel/numjs#readme
// Definitions by: taoqf <https://github.com/taoqf>
// matt <https://github.com/mattmm3d>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -12,7 +13,7 @@ export type NdType<T> = BaseNdArray.DataType | BaseNdArray.Data<T>;
export interface NdArray<T = number> extends BaseNdArray<T> {
ndim: number;
T: NdArray<T>;
slice(...args: number[]): NdArray<T>;
slice(...args: Array<number|number[]>): NdArray<T>;
/**
* Return a copy of the array collapsed into one dimension using row-major order (C-style)