Skip to content

Commit c54d1e0

Browse files
committed
fix: revert iterator type change
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 916b907 commit c54d1e0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/node_modules/@stdlib/array/typed/docs/types/index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
/// <reference types="@stdlib/types"/>
2424

2525
import { RealOrComplexTypedArray, TypedDataTypeMap, Collection } from '@stdlib/types/array';
26-
import { Iterator } from '@stdlib/types/iter';
2726
import 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.

lib/node_modules/@stdlib/array/typed/docs/types/test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
import array2iterator = require( '@stdlib/array/to-iterator' );
2019
import ArrayBuffer = require( '@stdlib/array/buffer' );
2120
import 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

0 commit comments

Comments
 (0)