Skip to content

Commit

Permalink
Fix internal TS error with TS 4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Apr 10, 2022
1 parent d595bef commit 857311d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/connect.tsx
Expand Up @@ -537,7 +537,9 @@ function connect<
displayName,
wrappedComponentName,
WrappedComponent,
// @ts-ignore
initMapStateToProps,
// @ts-ignore
initMapDispatchToProps,
// @ts-ignore
initMergeProps,
Expand Down
2 changes: 1 addition & 1 deletion src/connect/wrapMapToProps.ts
Expand Up @@ -4,7 +4,7 @@ import { FixTypeLater } from '../types'
import verifyPlainObject from '../utils/verifyPlainObject'

type AnyState = { [key: string]: any }
type StateOrDispatch<S = AnyState> = S | Dispatch
type StateOrDispatch<S extends AnyState = AnyState> = S | Dispatch

type AnyProps = { [key: string]: any }

Expand Down

0 comments on commit 857311d

Please sign in to comment.