Skip to content

Commit c962732

Browse files
committed
docs: examples in types updated
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 2ecf953 commit c962732

1 file changed

Lines changed: 3 additions & 5 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: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020

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

23-
import { Collection } from '@stdlib/types/array';
24-
2523
/**
2624
* Two-dimensional nested array.
2725
*/
28-
type Array2D<T> = Array<Collection<T>>;
26+
type Array2D<T> = Array<Array<T>>;
2927

3028
/**
3129
* Converts a two-dimensional banded nested array to compact banded storage.
@@ -54,9 +52,9 @@ type Array2D<T> = Array<Collection<T>>;
5452
* ];
5553
*
5654
* var out = toCompact( M, 1, 1, true );
57-
* // returns [ [ 0, 11, 3 ], [ 2, 12, 5 ], [ 4, 13, 0 ] ]
55+
* // returns [ [ 0, 11, 2 ], [ 3, 12, 4 ], [ 5, 13, 0 ] ]
5856
*/
59-
declare function toCompact<T = unknown>( arr: Array2D<T>, ku: number, kl: number, colexicographic: boolean ): Array2D<T>;
57+
declare function toCompact<T>( arr: Array2D<T>, ku: number, kl: number, colexicographic: boolean ): Array2D<T>;
6058

6159

6260
// EXPORTS //

0 commit comments

Comments
 (0)