mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 21:42:02 +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 { applyMiddleware, compose, createStore } from 'redux';
|
||||||
import thunk, { ThunkMiddleware } from 'redux-thunk';
|
import thunk, { ThunkMiddleware } from 'redux-thunk';
|
||||||
|
import AppActions from 'types/actions';
|
||||||
|
|
||||||
import reducers, { AppState } from './reducers';
|
import reducers, { AppState } from './reducers';
|
||||||
|
|
||||||
@ -8,8 +9,9 @@ const composeEnhancers =
|
|||||||
|
|
||||||
const store = createStore(
|
const store = createStore(
|
||||||
reducers,
|
reducers,
|
||||||
// @TODO Add Type for AppActions also
|
composeEnhancers(
|
||||||
composeEnhancers(applyMiddleware(thunk as ThunkMiddleware<AppState>)),
|
applyMiddleware(thunk as ThunkMiddleware<AppState, AppActions>),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
export default store;
|
export default store;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user