Skip to content

Commit

Permalink
Fix typing error in combineStreams
Browse files Browse the repository at this point in the history
  • Loading branch information
jsloat committed Aug 30, 2023
1 parent b3c1e36 commit ddbae78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/streams/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export const combineStreams = <
}: CombinedStreamOpts<StreamDict>) => {
const defaultState = objectFromEntries(
objectEntries(streamDict).map(([namespace, $]) => [namespace, $.getData()])
) as StreamDataType<StreamDict>;
) as {
[K in keyof StreamDict]: StreamDataType<StreamDict[K]>;
};
const combined$ = new Stream({
defaultState,
name,
Expand Down

0 comments on commit ddbae78

Please sign in to comment.