Skip to content

Commit

Permalink
fix(react/connect): correct props generic type
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaundal committed Sep 5, 2022
1 parent af97a74 commit 948ec44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const useStream = <T>(
* @see {@link useStream}
*/
export const connect =
<Props extends Record<string, unknown>, Observed extends Partial<Props>>(
<Props extends object, Observed extends Partial<Props>>(
Component: ComponentType<Props>,
stream$: ObservableInput<Observed>
) =>
Expand Down Expand Up @@ -86,7 +86,7 @@ const nextInstanceName = () => `view-${instanceCount++}`;
* @see {@link connect}
*/
export const connectInstance =
<Props extends Record<string, unknown>, Observed extends Partial<Props>>(
<Props extends object, Observed extends Partial<Props>>(
Component: ComponentType<Props>,
createInstanceStream: (instance: string) => ObservableInput<Observed>
) =>
Expand Down

0 comments on commit 948ec44

Please sign in to comment.