@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
41 lines (40 loc) • 1.9 kB
TypeScript
/**
* Combined reducer for all Replyke feature slices.
* Used by both standalone mode (internal) and integration mode (user's store).
*
* For integration mode, add this to your store under the 'replyke' key:
*
* @example
* ```typescript
* import { replykeReducers, replykeApiReducer, replykeMiddleware } from '@replyke/react-js';
*
* const store = configureStore({
* reducer: {
* replyke: replykeReducers,
* replykeApi: replykeApiReducer,
* ...yourReducers
* },
* middleware: (getDefault) => getDefault().concat(...replykeMiddleware)
* });
* ```
*/
export declare const replykeReducers: import("@reduxjs/toolkit").Reducer<{
auth: import("./slices/authSlice").AuthState;
appNotifications: import("./slices/appNotificationsSlice").AppNotificationsState;
collections: import("./slices/collectionsSlice").CollectionsState;
user: import("./slices/userSlice").UserState;
entityLists: import("./slices/entityListsSlice").EntityListsState;
spaceLists: import("./slices/spaceListsSlice").SpaceListsState;
accounts: import("./slices/accountsSlice").AccountsState;
chat: import("./slices/chatSlice").ChatState;
}, import("@reduxjs/toolkit").UnknownAction, Partial<{
auth: import("./slices/authSlice").AuthState | undefined;
appNotifications: import("./slices/appNotificationsSlice").AppNotificationsState | undefined;
collections: import("./slices/collectionsSlice").CollectionsState | undefined;
user: import("./slices/userSlice").UserState | undefined;
entityLists: import("./slices/entityListsSlice").EntityListsState | undefined;
spaceLists: import("./slices/spaceListsSlice").SpaceListsState | undefined;
accounts: import("./slices/accountsSlice").AccountsState | undefined;
chat: import("./slices/chatSlice").ChatState | undefined;
}>>;
export type ReplykeState = ReturnType<typeof replykeReducers>;