redux-store-init
Version:
redux-store-init is a function used to initialize store.
18 lines (13 loc) • 446 B
TypeScript
import * as Redux from 'redux';
export interface Reducers {
[rest: string]: Redux.Reducer<any>,
}
export interface IOptions {
reducers?: Reducers,
devtool?: boolean,
compose?: any[],
initState?: any,
applyMiddlewares?: any[],
}
export default function (options: IOptions, applyMiddlewares?: any[]): Redux.Store<any>;
export function createReducer(name: string, initState: object | any): object | any;