Skip to content

Commit 3b688cb

Browse files
committed
fix typing of individual iterators aquired from useAsyncIterState
1 parent af888c9 commit 3b688cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/common/AsyncIterableChannel.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ class AsyncIterableChannel<T, TInit = T> {
6565
* meaning that multiple iterators can be consumed (iterated) simultaneously and each one would pick up
6666
* the same values as others the moment they were generated through state updates.
6767
*/
68-
type AsyncIterableChannelSubject<T, TCurrVal = T> = AsyncIterableSubject<T, TCurrVal> & {
68+
type AsyncIterableChannelSubject<T, TCurrVal = T> = {
69+
value: AsyncIterableSubject<T, TCurrVal>['value'];
70+
6971
/**
7072
* Returns an async iterator to iterate over. All iterators returned by this share the same source
7173
* values - they can be iterated by multiple consumers simultaneously and each would pick up the

0 commit comments

Comments
 (0)