File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
lib/node_modules/@stdlib/array/typed/docs/types Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 23
23
/// <reference types="@stdlib/types"/>
24
24
25
25
import { RealOrComplexTypedArray , TypedDataTypeMap , Collection } from '@stdlib/types/array' ;
26
- import { Iterator } from '@stdlib/types/iter' ;
27
26
import ArrayBuffer = require( '@stdlib/array/buffer' ) ;
28
27
29
28
/**
@@ -101,7 +100,7 @@ declare function typedarray<T extends keyof TypedDataTypeMap = 'float64'>( typed
101
100
* var arr = typedarray( [ 5, -3 ], 'int32' );
102
101
* // returns <Int32Array>[ 5, -3 ]
103
102
*/
104
- declare function typedarray < T extends keyof TypedDataTypeMap = 'float64' > ( obj : Collection < unknown > | Iterator , dtype ?: T ) : TypedDataTypeMap [ T ] ;
103
+ declare function typedarray < T extends keyof TypedDataTypeMap = 'float64' > ( obj : Collection < unknown > | Iterable < unknown > , dtype ?: T ) : TypedDataTypeMap [ T ] ;
105
104
106
105
/**
107
106
* Creates a typed array.
Original file line number Diff line number Diff line change 16
16
* limitations under the License.
17
17
*/
18
18
19
- import array2iterator = require( '@stdlib/array/to-iterator' ) ;
20
19
import ArrayBuffer = require( '@stdlib/array/buffer' ) ;
21
20
import typedarray = require( './index' ) ;
22
21
@@ -27,7 +26,6 @@ import typedarray = require( './index' );
27
26
{
28
27
typedarray ( ) ; // $ExpectType Float64Array
29
28
typedarray ( [ 1 , 2 , 3 ] ) ; // $ExpectType Float64Array
30
- typedarray ( array2iterator ( [ 1 , 2 , 3 ] ) ) ; // $ExpectType Float64Array
31
29
typedarray ( new ArrayBuffer ( 10 ) ) ; // $ExpectType Float64Array
32
30
33
31
typedarray ( 'float32' ) ; // $ExpectType Float32Array
You can’t perform that action at this time.
0 commit comments