Skip to content

Commit 56cd0bf

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 9972161 commit 56cd0bf

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ interface Frexp {
6262
* var out = frexp( -Infinity );
6363
* // returns [ -Infinity , 0 ]
6464
*/
65-
( x: number ): Array<number>;
65+
( x: number ): [ number, number ];
6666

6767
/**
6868
* Splits a double-precision floating-point number into a normalized fraction and an integer power of two and assigns results to a provided output array.

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

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

2626
// The function returns an array of numbers...
2727
{
28-
frexp( 4.0 ); // $ExpectType number[]
28+
frexp( 4.0 ); // $ExpectType [number, number]
2929
}
3030

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ interface Frexpf {
6262
* var out = frexpf( -Infinity );
6363
* // returns [ -Infinity , 0 ]
6464
*/
65-
( x: number ): Array<number>;
65+
( x: number ): [ number, number ];
6666

6767
/**
6868
* Splits a single-precision floating-point number into a normalized fraction and an integer power of two and assigns results to a provided output array.

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

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

2626
// The function returns an array of numbers...
2727
{
28-
frexpf( 4.0 ); // $ExpectType number[]
28+
frexpf( 4.0 ); // $ExpectType [number, number]
2929
}
3030

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

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

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

4141
/**
4242
* Decomposes a double-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/modf/docs/types/test.ts

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

2626
// The function returns a numeric array...
2727
{
28-
modf( 1.0 ); // $ExpectType number[]
28+
modf( 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)