UNPKG

349 BTypeScriptView Raw
1import type { Context } from 'react';
2import type { Store } from 'redux';
3import type { TExtend } from 'tsfn';
4export declare const ReduxDispatchFactory: <STORE extends Store<any, import("redux").AnyAction>>(context: Context<STORE>) => <K extends string>(dispatchName: K) => <P extends {}>(props: P) => TExtend<P, { [k in K]: STORE["dispatch"]; }>;