@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
36 lines (35 loc) • 1.23 kB
TypeScript
/**
* Integration utilities for users who want to use their own Redux store.
*
* @example
* ```typescript
* import { configureStore } from '@reduxjs/toolkit';
* import {
* replykeReducers,
* replykeApiReducer,
* replykeMiddleware
* } from '@replyke/react-js';
*
* const store = configureStore({
* reducer: {
* replyke: replykeReducers,
* replykeApi: replykeApiReducer,
* ...yourReducers
* },
* middleware: (getDefault) => getDefault().concat(...replykeMiddleware)
* });
* ```
*/
export { replykeReducers, type ReplykeState } from "./replykeReducers";
export { baseApi as replykeApi, replykeApiReducer, replykeApiMiddleware, } from "./api/baseApi";
export { customMiddleware as replykeCustomMiddleware } from "./middleware";
/**
* Combined middleware array for convenience.
* Spread this into your middleware chain.
*
* @example
* ```typescript
* middleware: (getDefault) => getDefault().concat(...replykeMiddleware)
* ```
*/
export declare const replykeMiddleware: import("@reduxjs/toolkit").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{}, string, "replykeApi">, import("@reduxjs/toolkit").ThunkDispatch<any, any, import("@reduxjs/toolkit").UnknownAction>>[];