UNPKG

refun

Version:

A collection of React Hook-enabled functions that compose harmoniously with each other. Similar to `recompose`, but:

5 lines (4 loc) 349 B
import type { Context } from 'react'; import type { Store } from 'redux'; import type { TExtend } from 'tsfn'; export 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"]; }>;