Skip to content

Commit 3014ce9

Browse files
committed
fix: update return type
--- 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 2acc7f0 commit 3014ce9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import { complex128ndarray } from '@stdlib/types/ndarray';
24+
import { Complex128 } from '@stdlib/types/complex';
2425

2526
/**
2627
* Computes the sum of all elements in a one-dimensional double-precision complex floating-point ndarray.
@@ -38,7 +39,7 @@ import { complex128ndarray } from '@stdlib/types/ndarray';
3839
* var v = zsum( [ x ] );
3940
* // returns <Complex128>[ 5.0, 5.0 ]
4041
*/
41-
declare function zsum( arrays: [ complex128ndarray ] ): number;
42+
declare function zsum( arrays: [ complex128ndarray ] ): Complex128;
4243

4344

4445
// EXPORTS //

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ import zsum = require( './index' );
2424

2525
// TESTS //
2626

27-
// The function returns a number...
27+
// The function returns a complex number...
2828
{
2929
const x = zeros( [ 10 ], {
3030
'dtype': 'complex128'
3131
});
3232

33-
zsum( [ x ] ); // $ExpectType number
33+
zsum( [ x ] ); // $ExpectType Complex128
3434
}
3535

3636
// 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)