import { useDispatch as BaseUseDispatch } from 'react-redux'; import { Action, AnyAction } from 'redux'; import { ThunkDispatch } from 'redux-thunk'; import { StoreState } from '@Reducers/_InitializeStore/types'; export type UseDispatch = () => ThunkDispatch, T>; const useDispatch: UseDispatch = BaseUseDispatch; export default useDispatch;