mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 22:42:04 +08:00
chore: type is updated for thunk
This commit is contained in:
parent
75cdac376f
commit
f149258de2
@ -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