redux-smart-creators
Version:
Smart creators for actions and reducers
4 lines (3 loc) • 374 B
TypeScript
import { ExtendableAsyncActionCreator } from '../types/asyncCreator';
export declare function getAsyncCreator<ActionType extends string>(type: ActionType): ExtendableAsyncActionCreator<ActionType>;
export declare function getAsyncCreator<ActionType extends string, Steps extends string>(type: ActionType, steps: Steps[]): ExtendableAsyncActionCreator<ActionType, Steps>;