react-redux-isomorphic
Version:
Set of utilities for creating isomorphic applications using react-redux
14 lines (13 loc) • 695 B
TypeScript
import type { IsomorphicAction } from './actions';
import type { SingleState, FullState } from './types';
export declare const initialState: FullState;
export declare const componentInitialState: {
isReady: boolean;
isLoading: boolean;
isReloading: boolean;
context: any;
error: any;
};
export declare const componentReducer: <IsomorphicContext, IsomorphicError>(state: SingleState<IsomorphicContext, IsomorphicError>, action: IsomorphicAction<IsomorphicContext, IsomorphicError>) => SingleState<IsomorphicContext, IsomorphicError>;
declare const reactReduxIsomorphic: (state: FullState, action: IsomorphicAction<any, any>) => FullState;
export default reactReduxIsomorphic;