@@ -4,7 +4,7 @@ import verifySubselectors from './verifySubselectors'
44import type { EqualityFn , ExtendedEqualityFn } from '../types'
55
66export type SelectorFactory < S , TProps , TOwnProps , TFactoryOptions > = (
7- dispatch : Dispatch < Action < unknown > > ,
7+ dispatch : Dispatch < Action < string > > ,
88 factoryOptions : TFactoryOptions
99) => Selector < S , TProps , TOwnProps >
1010
@@ -31,7 +31,7 @@ export type MapStateToPropsParam<TStateProps, TOwnProps, State> =
3131 | undefined
3232
3333export type MapDispatchToPropsFunction < TDispatchProps , TOwnProps > = (
34- dispatch : Dispatch < Action < unknown > > ,
34+ dispatch : Dispatch < Action < string > > ,
3535 ownProps : TOwnProps
3636) => TDispatchProps
3737
@@ -40,7 +40,7 @@ export type MapDispatchToProps<TDispatchProps, TOwnProps> =
4040 | TDispatchProps
4141
4242export type MapDispatchToPropsFactory < TDispatchProps , TOwnProps > = (
43- dispatch : Dispatch < Action < unknown > > ,
43+ dispatch : Dispatch < Action < string > > ,
4444 ownProps : TOwnProps
4545) => MapDispatchToPropsFunction < TDispatchProps , TOwnProps >
4646
@@ -74,7 +74,7 @@ export function pureFinalPropsSelectorFactory<
7474 mapStateToProps : WrappedMapStateToProps < TStateProps , TOwnProps , State > ,
7575 mapDispatchToProps : WrappedMapDispatchToProps < TDispatchProps , TOwnProps > ,
7676 mergeProps : MergeProps < TStateProps , TDispatchProps , TOwnProps , TMergedProps > ,
77- dispatch : Dispatch < Action < unknown > > ,
77+ dispatch : Dispatch < Action < string > > ,
7878 {
7979 areStatesEqual,
8080 areOwnPropsEqual,
@@ -163,7 +163,7 @@ interface WrappedMapStateToProps<TStateProps, TOwnProps, State> {
163163}
164164
165165interface WrappedMapDispatchToProps < TDispatchProps , TOwnProps > {
166- ( dispatch : Dispatch < Action < unknown > > , ownProps : TOwnProps ) : TDispatchProps
166+ ( dispatch : Dispatch < Action < string > > , ownProps : TOwnProps ) : TDispatchProps
167167 readonly dependsOnOwnProps : boolean
168168}
169169
@@ -184,15 +184,15 @@ export interface SelectorFactoryOptions<
184184 State
185185> extends InitOptions < TStateProps , TOwnProps , TMergedProps , State > {
186186 readonly initMapStateToProps : (
187- dispatch : Dispatch < Action < unknown > > ,
187+ dispatch : Dispatch < Action < string > > ,
188188 options : InitOptions < TStateProps , TOwnProps , TMergedProps , State >
189189 ) => WrappedMapStateToProps < TStateProps , TOwnProps , State >
190190 readonly initMapDispatchToProps : (
191- dispatch : Dispatch < Action < unknown > > ,
191+ dispatch : Dispatch < Action < string > > ,
192192 options : InitOptions < TStateProps , TOwnProps , TMergedProps , State >
193193 ) => WrappedMapDispatchToProps < TDispatchProps , TOwnProps >
194194 readonly initMergeProps : (
195- dispatch : Dispatch < Action < unknown > > ,
195+ dispatch : Dispatch < Action < string > > ,
196196 options : InitOptions < TStateProps , TOwnProps , TMergedProps , State >
197197 ) => MergeProps < TStateProps , TDispatchProps , TOwnProps , TMergedProps >
198198}
@@ -210,7 +210,7 @@ export default function finalPropsSelectorFactory<
210210 TMergedProps ,
211211 State
212212> (
213- dispatch : Dispatch < Action < unknown > > ,
213+ dispatch : Dispatch < Action < string > > ,
214214 {
215215 initMapStateToProps,
216216 initMapDispatchToProps,
0 commit comments