export default function action()

in src/legacy/action.ts [15:23]


export default function action(actionType: string, actionContext?: ActionContext): ActionFactory {
    return function createAction(arg0: any, arg1: any, arg2: any) {
        if (arguments.length == 1 && typeof arg0 == 'function') {
            return wrapFunctionInAction(arg0, actionType, actionContext);
        } else {
            decorateClassMethod(arg0, arg1, arg2, actionType, actionContext);
        }
    } as ActionFactory;
}