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 a59259e
Showing 1 changed file with 1 addition and 1 deletion.
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 a59259e

Please sign in to comment.