Use RootState in AppDispatch type

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
environments/review-develop-3zknud/deployments/332^2
marcin mikołajczak 2 years ago
parent cfacc23f5c
commit 47b67df323

@ -22,4 +22,4 @@ export type Store = typeof store;
// Infer the `RootState` and `AppDispatch` types from the store itself
// https://redux.js.org/usage/usage-with-typescript
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = ThunkDispatch<{}, {}, AnyAction>;
export type AppDispatch = ThunkDispatch<RootState, {}, AnyAction>;

Loading…
Cancel
Save