UNPKG

@redux-multipurpose/core

Version:

## Installation Redux Multipurpose core is available as a package on NPM:

18 lines (17 loc) 618 B
import { EntityAdapter } from '@reduxjs/toolkit'; declare type WsSubstate = { data?: any; loading?: boolean; error?: any | null; }; export declare class WsState { [key: string]: WsSubstate; } export declare const createWsInitialState: (substates: (WsState | string)[]) => WsState; export declare const prepareThunk: <A, B, C>(state: string, id: string, callback: any) => import("@reduxjs/toolkit").AsyncThunk<A, B, C>; export declare const prepareThunkActionReducers: (thunksWithStates: { thunk: any; substate: string; adapter: EntityAdapter<any> | null | undefined; }[]) => {}; export {};