File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,25 @@ function bindActionCreator<A extends AnyAction = AnyAction>(
35
35
* function as `actionCreators`, the return value will also be a single
36
36
* function.
37
37
*/
38
+ export default function bindActionCreators < A , C extends ActionCreator < A > > (
39
+ actionCreator : C ,
40
+ dispatch : Dispatch
41
+ ) : C
42
+
43
+ export default function bindActionCreators <
44
+ A extends ActionCreator < any > ,
45
+ B extends ActionCreator < any >
46
+ > ( actionCreator : A , dispatch : Dispatch ) : B
47
+
48
+ export default function bindActionCreators <
49
+ A ,
50
+ M extends ActionCreatorsMapObject < A >
51
+ > ( actionCreators : M , dispatch : Dispatch ) : M
52
+ export default function bindActionCreators <
53
+ M extends ActionCreatorsMapObject < any > ,
54
+ N extends ActionCreatorsMapObject < any >
55
+ > ( actionCreators : M , dispatch : Dispatch ) : N
56
+
38
57
export default function bindActionCreators (
39
58
actionCreators : ActionCreator < any > | ActionCreatorsMapObject ,
40
59
dispatch : Dispatch
You can’t perform that action at this time.
0 commit comments