UNPKG

react-fluxify

Version:

Fluxify is a powerful and user-friendly npm package that simplifies the management of application state with React and Redux. It provides intuitive methods and pre-configured components for seamless integration, reducing boilerplate code and enhancing the

16 lines (15 loc) 971 B
/// <reference types="redux-persist/types/persistreducer" /> /// <reference types="redux-persist/types/types" /> /// <reference types="redux-persist" /> import { Action, Reducer } from "@reduxjs/toolkit"; import { Saga, SagaMiddleware } from "redux-saga"; interface ReduxifyConfig<R extends Reducer<unknown, Action<any>>, S extends Saga[]> { persistKey: string; reducers: R; sagas: S; } declare const reduxifyStore: <R extends Reducer<unknown, Action<any>>, S extends Saga[]>({ persistKey, reducers, sagas, }: ReduxifyConfig<R, S>) => { store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux-persist/es/persistReducer").PersistPartial, Action<any>, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<import("redux-persist/es/persistReducer").PersistPartial, import("redux").AnyAction>, SagaMiddleware<any>]>>; persistor: import("redux-persist").Persistor; }; export default reduxifyStore;