mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Splice can take a number array as an argument for 2D arrays (#27239)
This commit is contained in:
Vendored
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user