Skip to content

Commit a73a430

Browse files
committed
refactor: improve type specificity
--- 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 7ab721b commit a73a430

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/ndarray/base/meta-data-props/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ interface Meta {
7878
* // Set the properties:
7979
* setProps( meta, dtypes, obj );
8080
*/
81-
declare function setProps( meta: Meta, dtypes: ArrayLike<any>, obj: any ): any;
81+
declare function setProps<T>( meta: Meta, dtypes: ArrayLike<any>, obj: T ): T;
8282

8383

8484
// EXPORTS //

lib/node_modules/@stdlib/ndarray/base/meta-data-props/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import setProps = require( './index' );
3030
};
3131
const dtypes = [ 'float64', 'float64' ];
3232

33-
setProps( meta, dtypes, {} ); // $ExpectType any
34-
setProps( meta, dtypes, {} ); // $ExpectType any
33+
setProps( meta, dtypes, {} ); // $ExpectType {}
34+
setProps( meta, dtypes, {} ); // $ExpectType {}
3535
}
3636

3737
// The compiler throws an error if not provided a first argument which is a meta data object...

0 commit comments

Comments
 (0)