Merge pull request #1107 from palash-signoz/app-actions

chore: type is updated for thunk
This commit is contained in:
palash-signoz 2022-05-19 15:20:57 +05:30 committed by GitHub
commit d2913a2831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
import { applyMiddleware, compose, createStore } from 'redux';
import thunk, { ThunkMiddleware } from 'redux-thunk';
import AppActions from 'types/actions';
import reducers, { AppState } from './reducers';
@ -8,8 +9,9 @@ const composeEnhancers =
const store = createStore(
reducers,
// @TODO Add Type for AppActions also
composeEnhancers(applyMiddleware(thunk as ThunkMiddleware<AppState>)),
composeEnhancers(
applyMiddleware(thunk as ThunkMiddleware<AppState, AppActions>),
),
);
export default store;