redux-vertical
Version:
Build redux vertically
13 lines • 539 B
TypeScript
import type { Action, AnyAction } from 'redux';
export interface ActionCreator<A extends Action = AnyAction> {
(...args: any[]): A;
}
/**
* Create a multi action. Useful when you have an event in a subdomains that triggers a
* a command action that triggers changes in parent domains.
*
* requires the use of arrayMiddleware
*/
declare const createMultiAction: (event: ActionCreator, ...commands: ActionCreator[]) => (...args: any[]) => Action[];
export default createMultiAction;
//# sourceMappingURL=create-multi-action.d.ts.map