Skip to content

Commit

Permalink
Fix ReactNode in effector-react TypeScript typings
Browse files Browse the repository at this point in the history
  • Loading branch information
goodmind committed Jan 22, 2019
1 parent 6eb9c09 commit c72d5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/effector-react/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type StoreProvider<State> = React.ComponentType<{

export function createComponent<Props, State>(
store: Store<State>,
renderProp: (props: Props, state: State) => React.Node,
renderProp: (props: Props, state: State) => React.ReactNode,
): React.ComponentType<Props>
export function createContextComponent<Props, State, Context>(
store: Store<State>,
Expand Down

0 comments on commit c72d5d1

Please sign in to comment.