UNPKG

refun

Version:

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

5 lines (4 loc) 342 B
import type { Context } from 'react'; import type { Store } from 'redux'; import type { TExtend } from 'tsfn'; export declare const ReduxStateFactory: <S>(context: Context<Store<S, import("redux").AnyAction>>) => <P extends {}, SP extends {}>(mapStateToProps: (state: S) => SP, stateKeysToWatch: (keyof S)[]) => (props: P) => TExtend<P, SP>;