Skip to content

Commit 8357aff

Browse files
authored
refactor: change common AsyncIterableSubject type's .value.current property to non-optional (#59)
1 parent 8163847 commit 8357aff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AsyncIterableSubject/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ type AsyncIterableSubject<T, TCurrVal = T> = AsyncIterable<T> & {
1010
*/
1111

1212
value: {
13-
readonly current?: T | TCurrVal;
13+
readonly current: T | TCurrVal;
1414
};
1515
};

src/iterateFormatted/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function iterateFormatted<TIn, TRes>(
8686
) => TRes
8787
): ReactAsyncIterable<ExtractAsyncIterValue<TIn>, TRes> &
8888
(TIn extends AsyncIterableSubject<unknown>
89-
? { value: Required<AsyncIterableSubject<TRes>['value']> }
89+
? { value: AsyncIterableSubject<TRes>['value'] }
9090
: { value: undefined });
9191

9292
function iterateFormatted(

0 commit comments

Comments
 (0)