Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb6c1e5

Browse files
committed
'mapDispatchToProps' accept all action types
1 parent3c20cf4 commitfb6c1e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/models/action.model.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Action as ReduxAction } from 'redux'
33
exportinterfaceAction<TPayload=any,TMeta=any>
44
extendsReduxAction<string>{
55
payload:TPayload
6-
meta:TMeta
6+
meta?:TMeta
77
}
88

99
exportinterfaceActionCreatorDefinition<TPayload=any,TMeta=any>{

‎src/models/redux.model.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface StateToProps<TState = any> {
1010
exportinterfaceDispatchToProps<
1111
TDispatchActionextendsAnyAction=AnyAction
1212
>{
13-
<Textends{[key:string]:ActionCreatorDefinition}>(map:T):(
13+
<Textends{[key:string]:(...params:any[])=>AnyAction}>(map:T):(
1414
dispatch:Dispatch<TDispatchAction>,
1515
)=>T
1616
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp