Skip to content

Commit 1ba3724

Browse files
committed
refactor: remove unnecessary generics
--- 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 8808eb0 commit 1ba3724

40 files changed

Lines changed: 51 additions & 51 deletions

File tree

lib/node_modules/@stdlib/stats/base/ndarray/covarmtk/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
* Computes the covariance of two one-dimensional ndarrays provided known means and using a one-pass textbook algorithm.
@@ -56,7 +56,7 @@ import { ndarray } from '@stdlib/types/ndarray';
5656
* var v = covarmtk( [ x, y, correction, meanx, meany ] );
5757
* // returns ~3.8333
5858
*/
59-
declare function covarmtk<T extends ndarray = ndarray>( arrays: [ T, T, T, T, T ] ): number;
59+
declare function covarmtk( arrays: [ typedndarray<number>, typedndarray<number>, typedndarray<number>, typedndarray<number>, typedndarray<number> ] ): number;
6060

6161

6262
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/cumax/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

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

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

2525
/**
2626
* Computes the cumulative maximum value of a one-dimensional ndarray.
@@ -47,7 +47,7 @@ import { ndarray, typedndarray } from '@stdlib/types/ndarray';
4747
* var bool = ( z === y );
4848
* // returns true
4949
*/
50-
declare function cumax<T extends typedndarray<unknown> = typedndarray<unknown>>( arrays: [ ndarray, T ] ): T;
50+
declare function cumax<T extends typedndarray<unknown> = typedndarray<unknown>>( arrays: [ typedndarray<number>, T ] ): T;
5151

5252

5353
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/cumin/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

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

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

2525
/**
2626
* Computes the cumulative minimum value of a one-dimensional ndarray.
@@ -47,7 +47,7 @@ import { ndarray, typedndarray } from '@stdlib/types/ndarray';
4747
* var bool = ( z === y );
4848
* // returns true
4949
*/
50-
declare function cumin<T extends typedndarray<unknown> = typedndarray<unknown>>( arrays: [ ndarray, T ] ): T;
50+
declare function cumin<T extends typedndarray<unknown> = typedndarray<unknown>>( arrays: [ typedndarray<number>, T ] ): T;
5151

5252

5353
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/max/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4242
* var v = max( [ x ] );
4343
* // returns 4.0
4444
*/
45-
declare function max<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T ] ): number;
45+
declare function max( arrays: [ typedndarray<number> ] ): number;
4646

4747

4848
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/maxabs/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4242
* var v = maxabs( [ x ] );
4343
* // returns 4.0
4444
*/
45-
declare function maxabs<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T ] ): number;
45+
declare function maxabs( arrays: [ typedndarray<number> ] ): number;
4646

4747

4848
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/maxsorted/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4242
* var v = maxsorted( [ x ] );
4343
* // returns 4.0
4444
*/
45-
declare function maxsorted<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T ] ): number;
45+
declare function maxsorted( arrays: [ typedndarray<number> ] ): number;
4646

4747

4848
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/mean/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4242
* var v = mean( [ x ] );
4343
* // returns 2.5
4444
*/
45-
declare function mean<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T ] ): number;
45+
declare function mean( arrays: [ typedndarray<number> ] ): number;
4646

4747

4848
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/meankbn/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4242
* var v = meankbn( [ x ] );
4343
* // returns 2.5
4444
*/
45-
declare function meankbn<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T ] ): number;
45+
declare function meankbn( arrays: [ typedndarray<number> ] ): number;
4646

4747

4848
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/meankbn2/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4242
* var v = meankbn2( [ x ] );
4343
* // returns 2.5
4444
*/
45-
declare function meankbn2<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T ] ): number;
45+
declare function meankbn2( arrays: [ typedndarray<number> ] ): number;
4646

4747

4848
// EXPORTS //

lib/node_modules/@stdlib/stats/base/ndarray/meanors/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4242
* var v = meanors( [ x ] );
4343
* // returns 2.5
4444
*/
45-
declare function meanors<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T ] ): number;
45+
declare function meanors( arrays: [ typedndarray<number> ] ): number;
4646

4747

4848
// EXPORTS //

0 commit comments

Comments
 (0)