Skip to content

Commit a2565fe

Browse files
committed
refactor: use tuple for 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 776f485 commit a2565fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/math/base/special/cpolar/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface Cpolar {
3939
* var v = cpolar( new Complex128( 5.0, 3.0 ) );
4040
* // returns [ ~5.83, ~0.5404 ]
4141
*/
42-
( z: Complex128 ): Array<number>;
42+
( z: Complex128 ): [ number, number ];
4343

4444
/**
4545
* Computes the absolute value and the phase of a double-precision complex floating-point number and assigns results to a provided output array.

lib/node_modules/@stdlib/math/base/special/cpolar/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import cpolar = require( './index' );
2424

2525
// The function returns an array of numbers...
2626
{
27-
cpolar( new Complex128( 5.0, 3.0 ) ); // $ExpectType number[]
27+
cpolar( new Complex128( 5.0, 3.0 ) ); // $ExpectType [number, number]
2828
}
2929

3030
// The compiler throws an error if the function is provided a complex number...

0 commit comments

Comments
 (0)