Skip to content

Commit 2c660a2

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 432187b commit 2c660a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface Modff {
3636
* var parts = modff( 3.14 );
3737
* // returns [ 3.0, 0.1400001049041748 ]
3838
*/
39-
( x: number ): Array<number>;
39+
( x: number ): [ number, number ];
4040

4141
/**
4242
* Decomposes a single-precision floating-point number into integral and fractional parts, each having the same type and sign as the input value.

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

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

2626
// The function returns a numeric array...
2727
{
28-
modff( 1.0 ); // $ExpectType number[]
28+
modff( 1.0 ); // $ExpectType [number, number]
2929
}
3030

3131
// The compiler throws an error if the function is provided an argument other than a number...

0 commit comments

Comments
 (0)