We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf5dc8ea commit3a3fb74Copy full SHA for 3a3fb74
src/models/redux.model.ts
@@ -2,15 +2,16 @@ import { Dispatch, AnyAction } from 'redux'
2
import{ActionCreatorDefinition}from'..'
3
4
exportinterfaceStateToProps<TState=any>{
5
-<Textends{[key:string]:any}={}>(map:(store:TState)=>T):(
6
-store:TState,
7
-)=>T
+<Textends{[key:string]:any}={},Town={}>(
+map:(store:TState,own:Town)=>T,
+):(store:TState,own:Town)=>T
8
}
9
10
exportinterfaceDispatchToProps<
11
TDispatchActionextendsAnyAction=AnyAction
12
>{
13
-<Textends{[key:string]:(...params:any[])=>AnyAction}>(map:T):(
14
-dispatch:Dispatch<TDispatchAction>,
15
+<Textends{[key:string]:(...params:any[])=>AnyAction},Town>(
+map:T,
+own:Town,
16
+):(dispatch:Dispatch<TDispatchAction>,own:Town)=>T
17