Skip to content

Commit

Permalink
refactor: change common AsyncIterableSubject type's `.value.current…
Browse files Browse the repository at this point in the history
…` property to non-optional (#59)
  • Loading branch information
shtaif authored Jan 16, 2025
1 parent 8163847 commit 8357aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AsyncIterableSubject/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ type AsyncIterableSubject<T, TCurrVal = T> = AsyncIterable<T> & {
*/

value: {
readonly current?: T | TCurrVal;
readonly current: T | TCurrVal;
};
};
2 changes: 1 addition & 1 deletion src/iterateFormatted/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function iterateFormatted<TIn, TRes>(
) => TRes
): ReactAsyncIterable<ExtractAsyncIterValue<TIn>, TRes> &
(TIn extends AsyncIterableSubject<unknown>
? { value: Required<AsyncIterableSubject<TRes>['value']> }
? { value: AsyncIterableSubject<TRes>['value'] }
: { value: undefined });

function iterateFormatted(
Expand Down

0 comments on commit 8357aff

Please sign in to comment.