mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 19:12:02 +08:00
Merge pull request #1107 from palash-signoz/app-actions
chore: type is updated for thunk
This commit is contained in:
commit
d2913a2831
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user