opds-web-client
Version:
12 lines (11 loc) • 461 B
TypeScript
import { ThunkDispatch } from "redux-thunk";
import { State } from "../state";
import { Action } from "redux";
/**
* Custom hook to use react-redux dispatch typed properly for redux thunk
* - note that actions are currently typed as any, as they are not strongly
* typed in OPDS-web-client
*/
export declare type ReduxDispatch = ThunkDispatch<State, undefined, Action>;
declare const useThunkDispatch: () => ReduxDispatch;
export default useThunkDispatch;