2019-11-05 01:34:14 +00:00
|
|
|
import { ActionCreator, ActionPayloadGenerator, Dictionary } from '../types';
|
|
|
|
export declare function actionCreator<T extends string, P extends any>(type: T, transform: (...args: any[]) => P): ActionCreator<T, P>;
|
|
|
|
export declare function actionCreator<T extends string>(type: T, transform: never): ActionCreator<T, undefined>;
|
|
|
|
export declare function actionCreator<T extends string>(type: T, transform: null): ActionCreator<T, null>;
|
2019-10-24 15:52:36 +00:00
|
|
|
declare type ActionPair = [string, ActionCreator];
|
|
|
|
declare function buildActions(generators?: Dictionary<ActionPayloadGenerator>, actionNames?: string[], subActions?: ActionPair[]): Dictionary<ActionCreator>;
|
|
|
|
export default buildActions;
|
|
|
|
//# sourceMappingURL=index.d.ts.map
|