From ddbae78caf0caf4175103cb2534446cfcb34ebd7 Mon Sep 17 00:00:00 2001 From: John Sloat Date: Wed, 30 Aug 2023 14:25:56 -0700 Subject: [PATCH] Fix typing error in combineStreams --- src/streams/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/streams/utils.ts b/src/streams/utils.ts index 9227006..5d40d7e 100644 --- a/src/streams/utils.ts +++ b/src/streams/utils.ts @@ -104,7 +104,9 @@ export const combineStreams = < }: CombinedStreamOpts) => { const defaultState = objectFromEntries( objectEntries(streamDict).map(([namespace, $]) => [namespace, $.getData()]) - ) as StreamDataType; + ) as { + [K in keyof StreamDict]: StreamDataType; + }; const combined$ = new Stream({ defaultState, name,