Skip to content

Commit 7750a33

Browse files
committed
fix: apply suggested changes
--- 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: passed - 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 d8b19d5 commit 7750a33

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

lib/node_modules/@stdlib/blas/ext/base/ndarray/grev/docs/repl.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
{{alias}}( arrays )
23
Reverses a one-dimensional ndarray in-place.
34

lib/node_modules/@stdlib/blas/ext/base/ndarray/grev/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* @license Apache-2.0
33
*
44
* Copyright (c) 2025 The Stdlib Authors.
@@ -20,7 +20,7 @@
2020

2121
/// <reference types="@stdlib/types"/>
2222

23-
import { ndarray } from '@stdlib/types/ndarray';
23+
import { typedndarray } from '@stdlib/types/ndarray';
2424

2525
/**
2626
* Reverses a one-dimensional ndarray in-place.
@@ -41,7 +41,7 @@ import { ndarray } from '@stdlib/types/ndarray';
4141
* var arr = ndarray2array( x );
4242
* // returns [ 4.0, 3.0, 2.0, 1.0 ]
4343
*/
44-
declare function grev( arrays: [ ndarray ] ): ndarray;
44+
declare function grev<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T ] ): T;
4545

4646

4747
// EXPORTS //

lib/node_modules/@stdlib/blas/ext/base/ndarray/grev/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* @license Apache-2.0
33
*
44
* Copyright (c) 2025 The Stdlib Authors.
@@ -30,7 +30,7 @@ import grev = require( './index' );
3030
'dtype': 'float64'
3131
});
3232

33-
grev( [ x ] ); // $ExpectType ndarray
33+
grev( [ x ] ); // $ExpectType float64ndarray
3434
}
3535

3636
// The compiler throws an error if the function is provided a first argument which is not an array of ndarrays...

lib/node_modules/@stdlib/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4517,7 +4517,7 @@ declare module '@stdlib/types/utilities' {
45174517
/**
45184518
* Override the properties of a first type with the properties of a second type.
45194519
*/
4520-
type Override<T, U> = Omit<T, keyof U> & U;
4520+
type Override<T, U> = Omit<T, keyof U> & U;For generic functions that work with typed ndarrays, we import typedndarray rather than ndarray. See gsum and other packages in blas/ext/base/ndarray/ for reference.
45214521

45224522
/**
45234523
* Remap all properties of a type for better Intellisense.

0 commit comments

Comments
 (0)