redux-tiles
Version:
Library to create and easily compose redux pieces together in less verbose manner
9 lines (8 loc) • 534 B
TypeScript
import { IAsyncActionTypes, ISyncActionTypes } from "./types";
export declare type FnResult = (params: any, additionalParams?: any) => any;
export declare function shouldBeFetched({isPending, fetched, error}: any): boolean;
export declare function asyncAction({START, SUCCESS, FAILURE, fn, type, caching, nesting, selectors}: IAsyncActionTypes): FnResult;
export declare function createResetAction({type}: {
type: string;
}): Function;
export declare function syncAction({SET, fn, nesting, selector}: ISyncActionTypes): FnResult;