File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 66
77## Unreleased (2025-05-15)
88
9+ <section class =" bug-fixes " >
10+
11+ ### Bug Fixes
12+
13+ - [ ` c54d1e0 ` ] ( https://github.com/stdlib-js/stdlib/commit/c54d1e095143ad68529927fe76e8ddc435592a19 ) - revert iterator type change
14+
15+ </section >
16+
17+ <!-- /.bug-fixes -->
18+
919<section class =" commits " >
1020
1121### Commits
1222
1323<details >
1424
25+ - [ ` c54d1e0 ` ] ( https://github.com/stdlib-js/stdlib/commit/c54d1e095143ad68529927fe76e8ddc435592a19 ) - ** fix:** revert iterator type change _ (by Athan Reines)_
1526- [ ` b6df817 ` ] ( https://github.com/stdlib-js/stdlib/commit/b6df81722b97af36092f9c6850f33e6d4795aaa4 ) - ** docs:** fix types _ (by Athan Reines)_
1627
1728</details >
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