Skip to content

Commit 6a6af06

Browse files
committed
fix: update type expectations in cumin tests to match generic 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: na - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 70c0a74 commit 6a6af06

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/cumin/docs/types

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/cumin/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import cumin = require( './index' );
2727
const x = new Float64Array( 10 );
2828
const y = new Float64Array( 10 );
2929

30-
cumin( x.length, x, 1, y, 1 ); // $ExpectType NumericArray
30+
cumin( x.length, x, 1, y, 1 ); // $ExpectType Float64Array
3131
cumin( x.length, new AccessorArray( x ), 1, new AccessorArray( y ), 1 ); // $ExpectType AccessorArray<number>
3232
}
3333

@@ -125,7 +125,7 @@ import cumin = require( './index' );
125125
const x = new Float64Array( 10 );
126126
const y = new Float64Array( 10 );
127127

128-
cumin.ndarray( x.length, x, 1, 0, y, 1, 0 ); // $ExpectType NumericArray
128+
cumin.ndarray( x.length, x, 1, 0, y, 1, 0 ); // $ExpectType Float64Array
129129
cumin.ndarray( x.length, new AccessorArray( x ), 1, 0, new AccessorArray( y ), 1, 0 ); // $ExpectType AccessorArray<number>
130130
}
131131

0 commit comments

Comments
 (0)