Skip to content

Commit be98b4f

Browse files
committed
fix: update import path for Collection type definition
Ref: bde4671
1 parent 9582569 commit be98b4f

File tree

2 files changed

+8
-8
lines changed
  • lib/node_modules/@stdlib/iter

2 files changed

+8
-8
lines changed

lib/node_modules/@stdlib/iter/to-array-view-right/docs/types/index.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import { TypedIterator, TypedIterableIterator } from '@stdlib/types/iter';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
// Define a union type representing both iterable and non-iterable iterators:
2727
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>
9191
* var arr = iterator2arrayviewRight( iter, new Float64Array( 20 ) );
9292
* // returns <Float64Array>
9393
*/
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>;
9595

9696
/**
9797
* 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>,
115115
* var arr = iterator2arrayviewRight( iter, new Float64Array( 20 ), 5 );
116116
* // returns <Float64Array>
117117
*/
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>;
119119

120120
/**
121121
* 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>,
141141
* var arr = iterator2arrayviewRight( iter, new Float64Array( 20 ), 5, 8 );
142142
* // returns <Float64Array>
143143
*/
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>;
145145

146146

147147
// EXPORTS //

lib/node_modules/@stdlib/iter/to-array-view/docs/types/index.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import { TypedIterator, TypedIterableIterator } from '@stdlib/types/iter';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
// Define a union type representing both iterable and non-iterable iterators:
2727
type Iterator<T> = TypedIterator<T> | TypedIterableIterator<T>;
@@ -90,7 +90,7 @@ type MapFunction<T, U> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U>
9090
* var arr = iterator2arrayview( iter, new Float64Array( 20 ) );
9191
* // returns <Float64Array>
9292
*/
93-
declare function iterator2arrayview<T = any, U = T>( iterator: Iterator<T>, out: Collection<U>, mapFcn?: MapFunction<T, U>, thisArg?: any ): Collection<U>;
93+
declare function iterator2arrayview<T = unknown, U = T>( iterator: Iterator<T>, out: Collection<U>, mapFcn?: MapFunction<T, U>, thisArg?: ThisParameterType<MapFunction<T, U>> ): Collection<U>;
9494

9595
/**
9696
* Fills an array-like object view with values returned from an iterator.
@@ -113,7 +113,7 @@ declare function iterator2arrayview<T = any, U = T>( iterator: Iterator<T>, out:
113113
* var arr = iterator2arrayview( iter, new Float64Array( 20 ), 5 );
114114
* // returns <Float64Array>
115115
*/
116-
declare function iterator2arrayview<T = any, U = T>( iterator: Iterator<T>, out: Collection<U>, begin: number, mapFcn?: MapFunction<T, U>, thisArg?: any ): Collection<U>;
116+
declare function iterator2arrayview<T = unknown, U = T>( iterator: Iterator<T>, out: Collection<U>, begin: number, mapFcn?: MapFunction<T, U>, thisArg?: ThisParameterType<MapFunction<T, U>> ): Collection<U>;
117117

118118
/**
119119
* Fills an array-like object view with values returned from an iterator.
@@ -137,7 +137,7 @@ declare function iterator2arrayview<T = any, U = T>( iterator: Iterator<T>, out:
137137
* var arr = iterator2arrayview( iter, new Float64Array( 20 ), 5, 8 );
138138
* // returns <Float64Array>
139139
*/
140-
declare function iterator2arrayview<T = any, U = T>( iterator: Iterator<T>, out: Collection<U>, begin: number, end: number, mapFcn?: MapFunction<T, U>, thisArg?: any ): Collection<U>;
140+
declare function iterator2arrayview<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>;
141141

142142

143143
// EXPORTS //

0 commit comments

Comments
 (0)