Skip to content

Commit 60fcd9d

Browse files
committed
fix: improve type specificity
--- 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 b77641d commit 60fcd9d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/blas/ext/base/ndarray/gsorthp/docs/types/index.d.ts

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

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

23-
import { typedndarray } from '@stdlib/types/ndarray';
23+
import { typedndarray, genericndarray } from '@stdlib/types/ndarray';
2424

2525
/**
2626
* Sorts a one-dimensional ndarray using heapsort.
@@ -50,7 +50,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
5050
* var arr = ndarray2array( out );
5151
* // returns [ -4.0, -2.0, 1.0, 3.0 ]
5252
*/
53-
declare function gsorthp<T = unknown>( arrays: [ typedndarray<T>, typedndarray<number> ] ): typedndarray<T>;
53+
declare function gsorthp<T extends typedndarray<unknown> | genericndarray<unknown> = typedndarray<unknown>>( arrays: [ T, typedndarray<number> ] ): T;
5454

5555

5656
// EXPORTS //

lib/node_modules/@stdlib/blas/ext/base/ndarray/gsorthp/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import gsorthp = require( './index' );
3434
'dtype': 'generic'
3535
});
3636

37-
gsorthp( [ x, order ] ); // $ExpectType typedndarray<number>
37+
gsorthp( [ x, order ] ); // $ExpectType genericndarray<number>
3838
}
3939

4040
// The compiler throws an error if the function is provided a first argument which is not an array of ndarrays...

0 commit comments

Comments
 (0)