Skip to content

Commit 2b7eb0c

Browse files
committed
docs: roll back to collection generic type
1 parent 44434a3 commit 2b7eb0c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/array/base/banded/to-compact/docs/types

lib/node_modules/@stdlib/array/base/banded/to-compact/docs/types/index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020

2121
/// <reference types="@stdlib/types"/>
2222

23+
import { Collection } from '@stdlib/types/array';
24+
2325
/**
2426
* Two-dimensional nested array.
2527
*/
26-
type Array2D<T> = Array<Array<T>>;
28+
type Array2D<T> = Array<Collection<T>>;
2729

2830
/**
2931
* Converts a two-dimensional banded nested array to compact banded storage.
@@ -54,7 +56,7 @@ type Array2D<T> = Array<Array<T>>;
5456
* var out = toCompact( M, 1, 1, true );
5557
* // returns [ [ 0, 11, 2 ], [ 3, 12, 4 ], [ 5, 13, 0 ] ]
5658
*/
57-
declare function toCompact<T>( arr: Array2D<T>, ku: number, kl: number, colexicographic: boolean ): Array2D<T>;
59+
declare function toCompact<T = unknown>( arr: Array2D<T>, ku: number, kl: number, colexicographic: boolean ): Array2D<T>;
5860

5961

6062
// EXPORTS //

0 commit comments

Comments
 (0)