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 2323/// <reference types="@stdlib/types"/>
2424
2525import { RealOrComplexTypedArray , TypedDataTypeMap , Collection } from '@stdlib/types/array' ;
26- import { Iterator } from '@stdlib/types/iter' ;
2726import ArrayBuffer = require( '@stdlib/array/buffer' ) ;
2827
2928/**
@@ -101,7 +100,7 @@ declare function typedarray<T extends keyof TypedDataTypeMap = 'float64'>( typed
101100* var arr = typedarray( [ 5, -3 ], 'int32' );
102101* // returns <Int32Array>[ 5, -3 ]
103102*/
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 ] ;
105104
106105/**
107106* Creates a typed array.
Original file line number Diff line number Diff line change 1616* limitations under the License.
1717*/
1818
19- import array2iterator = require( '@stdlib/array/to-iterator' ) ;
2019import ArrayBuffer = require( '@stdlib/array/buffer' ) ;
2120import typedarray = require( './index' ) ;
2221
@@ -27,7 +26,6 @@ import typedarray = require( './index' );
2726{
2827 typedarray ( ) ; // $ExpectType Float64Array
2928 typedarray ( [ 1 , 2 , 3 ] ) ; // $ExpectType Float64Array
30- typedarray ( array2iterator ( [ 1 , 2 , 3 ] ) ) ; // $ExpectType Float64Array
3129 typedarray ( new ArrayBuffer ( 10 ) ) ; // $ExpectType Float64Array
3230
3331 typedarray ( 'float32' ) ; // $ExpectType Float32Array
You can’t perform that action at this time.
0 commit comments