Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ae5d546

Browse files
authored
fix(useAsyncIterState): individual iterators types' .return method should not be optional (#78)
1 parent af888c9 commit ae5d546

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)

AltStyle によって変換されたページ (->オリジナル) /