File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -201,19 +201,12 @@ function useAsyncIterMulti<
201
201
opts ?: {
202
202
initialValues ?: TInitValues ;
203
203
}
204
- ) : IterationResultSet < TValues , TInitValues > ;
205
-
206
- function useAsyncIterMulti (
207
- inputs : readonly unknown [ ] ,
208
- opts ?: {
209
- initialValues ?: readonly unknown [ ] ;
210
- }
211
- ) : IterationResultSet < readonly unknown [ ] , readonly unknown [ ] > {
204
+ ) : IterationResultSet < TValues , TInitValues > {
212
205
const update = useSimpleRerender ( ) ;
213
206
214
207
const ref = useRefWithInitialValue ( ( ) => ( {
215
208
currDiffCompId : 0 ,
216
- prevResults : [ ] as IterationResult < unknown , unknown > [ ] ,
209
+ prevResults : [ ] as IterationResultSet < TValues , TInitValues > ,
217
210
activeItersMap : new Map <
218
211
AsyncIterable < unknown > ,
219
212
{
@@ -289,7 +282,7 @@ function useAsyncIterMulti(
289
282
activeItersMap . set ( baseIter , newIterState ) ;
290
283
291
284
return newIterState . currState ;
292
- } ) ;
285
+ } ) as IterationResultSet < TValues , TInitValues > ;
293
286
294
287
const numOfPrevRunItersDisappeared = numOfPrevRunIters - numOfPrevRunItersPreserved ;
295
288
You can’t perform that action at this time.
0 commit comments