redux-saga-tools
Version:
A set of utility functions to write saga and reducers easily
24 lines (23 loc) • 827 B
TypeScript
import { ActionsUnion } from './action';
export declare enum ProgressActionType {
START_ACTION = "@Progress/START_ACTION",
END_ACTION = "@Progress/END_ACTION",
FAIL_ACTION = "@Progress/FAIL_ACTION",
RESET_ACTION = "@Progress/RESET_ACTION"
}
export declare const ProgressActions: {
startAction: (type: string) => import("./action").ActionWithPayload<{
type: string;
}>;
endAction: (type: string) => import("./action").ActionWithPayload<{
type: string;
}>;
failAction: (type: string, error: string) => import("./action").ActionWithPayload<{
type: string;
error: string;
}>;
resetAction: (type: string) => import("./action").ActionWithPayload<{
type: string;
}>;
};
export declare type ProgressActions = ActionsUnion<typeof ProgressActions>;