Skip to content

Commit ee0a4c0

Browse files
authored
fix: improve type specificity
Signed-off-by: Athan <kgryte@gmail.com>
1 parent faf343e commit ee0a4c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/ndarray/midrange/docs/types

lib/node_modules/@stdlib/stats/base/ndarray/midrange/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 mid-range of a one-dimensional ndarray.
@@ -37,7 +37,7 @@ import { ndarray } from '@stdlib/types/ndarray';
3737
* var v = midrange( [ x ] );
3838
* // returns 1.0
3939
*/
40-
declare function midrange<T extends ndarray = ndarray>( arrays: [ T ] ): number;
40+
declare function midrange<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T ] ): number;
4141

4242

4343
// EXPORTS //

0 commit comments

Comments
 (0)