UNPKG

refun

Version:

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

8 lines (7 loc) 606 B
/// <reference types="react" /> import type { Store } from 'redux'; export declare const StoreContextFactory: <STORE extends Store<any, import("redux").AnyAction>>(store: STORE) => { Context: import("react").Context<STORE>; mapStoreState: <P extends {}, SP extends {}>(mapStateToProps: (state: ReturnType<STORE["getState"]>) => SP, stateKeysToWatch: (keyof ReturnType<STORE["getState"]>)[]) => (props: P) => import("tsfn").TExtend<P, SP>; mapStoreDispatch: <K extends string>(dispatchName: K) => <P_1 extends {}>(props: P_1) => import("tsfn").TExtend<P_1, { [k in K]: STORE["dispatch"]; }>; };