Skip to content

Commit

Permalink
fix: connect() fails on Typescript4.3+ #893
Browse files Browse the repository at this point in the history
  • Loading branch information
semoal committed Jun 10, 2021
1 parent f43c3a7 commit f794263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,15 +717,15 @@ declare module 'react-redux' {
TOwnProps,
RM extends Models<RM> = Models
> = (
dispatch: RematchDispatch<RM>,
dispatch: any,
ownProps: TOwnProps
) => MapRematchDispatchToPropsFunction<TDispatchProps, TOwnProps, RM>

type MapRematchDispatchToPropsFunction<
TDispatchProps,
TOwnProps,
RM extends Models<RM> = Models
> = (dispatch: RematchDispatch<RM>, ownProps: TOwnProps) => TDispatchProps
> = (dispatch: any, ownProps: TOwnProps) => TDispatchProps
}

declare global {
Expand Down

0 comments on commit f794263

Please sign in to comment.