File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/node_modules/@stdlib/ndarray/iter/columns/docs/types Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 21
21
/// <reference types="@stdlib/types"/>
22
22
23
23
import { TypedIterator , TypedIterableIterator } from '@stdlib/types/iter' ;
24
- import { ndarray } from '@stdlib/types/ndarray' ;
24
+ import { typedndarray } from '@stdlib/types/ndarray' ;
25
25
26
26
// Define a union type representing both iterable and non-iterable iterators:
27
27
type Iterator < T > = TypedIterator < T > | TypedIterableIterator < T > ;
@@ -79,7 +79,7 @@ interface Options {
79
79
*
80
80
* // ...
81
81
*/
82
- declare function nditerColumns ( x : ndarray , options ?: Options ) : Iterator < ndarray > ;
82
+ declare function nditerColumns < T = unknown > ( x : typedndarray < T > , options ?: Options ) : Iterator < typedndarray < T > > ;
83
83
84
84
85
85
// EXPORTS //
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ import nditerColumns = require( './index' );
24
24
25
25
// The function returns an iterator...
26
26
{
27
- nditerColumns ( zeros ( [ 2 , 2 ] ) ) ; // $ExpectType Iterator<ndarray >
28
- nditerColumns ( zeros ( [ 2 , 2 ] ) , { } ) ; // $ExpectType Iterator<ndarray >
27
+ nditerColumns ( zeros ( [ 2 , 2 ] ) ) ; // $ExpectType Iterator<typedndarray<number> >
28
+ nditerColumns ( zeros ( [ 2 , 2 ] ) , { } ) ; // $ExpectType Iterator<typedndarray<number> >
29
29
}
30
30
31
31
// The compiler throws an error if the function is provided a first argument which is not an ndarray...
You can’t perform that action at this time.
0 commit comments