mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
[redux-actions] fix incorrect return type for combineActions() (#18216)
* [redux-actions] fix incorrect return type for combineActions() * [redux-actions] fix indentation * [redux-actions] remove unnecessary cast
This commit is contained in:
Vendored
+1
-3
@@ -119,6 +119,4 @@ export function handleActions<State, Payload>(
|
||||
initialState: State
|
||||
): Reducer<State, Payload>;
|
||||
|
||||
export function combineActions(
|
||||
...actionTypes: Array<ActionFunctions<any> | string>
|
||||
): Array<ActionFunctions<any>>;
|
||||
export function combineActions(...actionTypes: Array<ActionFunctions<any> | string>): string;
|
||||
|
||||
@@ -136,6 +136,10 @@ ReduxActions.handleAction(act3, (state, action) => {
|
||||
|
||||
ReduxActions.handleAction(ReduxActions.combineActions(act1, act3, act2), (state, action) => {}, 0);
|
||||
|
||||
ReduxActions.handleActions({
|
||||
[ReduxActions.combineActions(act1, act3, act2)](state, action) {}
|
||||
}, 0);
|
||||
|
||||
/* can't do this until it lands in 2.2, HKTs
|
||||
ReduxActions.handleAction(act, (state, action) => {
|
||||
action.payload === 'hello'
|
||||
|
||||
Reference in New Issue
Block a user