@drieam/common
Version:
Default Drieam api wrapper
9 lines (8 loc) • 472 B
TypeScript
import redux from 'redux';
import * as api from '@drieam/api';
import { StoreOptions } from '../types';
declare const setStore: <API, T = {}>(routes: api.ApiRoutes<API>, reducer: redux.Reducer<T, redux.AnyAction>, extraMiddleware?: redux.Middleware<{}, any, redux.Dispatch<redux.AnyAction>>[], options?: StoreOptions) => (initialState?: redux.DeepPartial<T>) => redux.Store<T & {}, redux.Action<any>> & {
dispatch: {};
};
export { setStore };
export default setStore;