21
21
/// <reference types="@stdlib/types"/>
22
22
23
23
import { TypedIterator , TypedIterableIterator } from '@stdlib/types/iter' ;
24
- import { Collection } from '@stdlib/types/object ' ;
24
+ import { Collection } from '@stdlib/types/array ' ;
25
25
26
26
// Define a union type representing both iterable and non-iterable iterators:
27
27
type Iterator < T > = TypedIterator < T > | TypedIterableIterator < T > ;
@@ -91,7 +91,7 @@ type MapFunction<T, U> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U>
91
91
* var arr = iterator2arrayviewRight( iter, new Float64Array( 20 ) );
92
92
* // returns <Float64Array>
93
93
*/
94
- declare function iterator2arrayviewRight < T = any , U = T > ( iterator : Iterator < T > , out : Collection < U > , mapFcn ?: MapFunction < T , U > , thisArg ?: any ) : Collection < U > ;
94
+ declare function iterator2arrayviewRight < T = unknown , U = T > ( iterator : Iterator < T > , out : Collection < U > , mapFcn ?: MapFunction < T , U > , thisArg ?: ThisParameterType < MapFunction < T , U > > ) : Collection < U > ;
95
95
96
96
/**
97
97
* Fills an array-like object view from right to left with values returned from an iterator.
@@ -115,7 +115,7 @@ declare function iterator2arrayviewRight<T = any, U = T>( iterator: Iterator<T>,
115
115
* var arr = iterator2arrayviewRight( iter, new Float64Array( 20 ), 5 );
116
116
* // returns <Float64Array>
117
117
*/
118
- declare function iterator2arrayviewRight < T = any , U = T > ( iterator : Iterator < T > , out : Collection < U > , begin : number , mapFcn ?: MapFunction < T , U > , thisArg ?: any ) : Collection < U > ;
118
+ declare function iterator2arrayviewRight < T = unknown , U = T > ( iterator : Iterator < T > , out : Collection < U > , begin : number , mapFcn ?: MapFunction < T , U > , thisArg ?: ThisParameterType < MapFunction < T , U > > ) : Collection < U > ;
119
119
120
120
/**
121
121
* Fills an array-like object view from right to left with values returned from an iterator.
@@ -141,7 +141,7 @@ declare function iterator2arrayviewRight<T = any, U = T>( iterator: Iterator<T>,
141
141
* var arr = iterator2arrayviewRight( iter, new Float64Array( 20 ), 5, 8 );
142
142
* // returns <Float64Array>
143
143
*/
144
- declare function iterator2arrayviewRight < T = any , U = T > ( iterator : Iterator < T > , out : Collection < U > , begin : number , end : number , mapFcn ?: MapFunction < T , U > , thisArg ?: any ) : Collection < U > ;
144
+ declare function iterator2arrayviewRight < T = unknown , U = T > ( iterator : Iterator < T > , out : Collection < U > , begin : number , end : number , mapFcn ?: MapFunction < T , U > , thisArg ?: ThisParameterType < MapFunction < T , U > > ) : Collection < U > ;
145
145
146
146
147
147
// EXPORTS //
0 commit comments