UNPKG

refun

Version:

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

3 lines (2 loc) 338 B
import type { TExtend3 } from 'tsfn'; export declare const mapState: <SN extends string, SSN extends string, P extends {}, R>(stateName: SN, stateSetterName: SSN, getValue: (props: P) => R, watchKeys: (keyof P)[]) => (props: P) => import("tsfn").TExtend<import("tsfn").TExtend<P, { [K in SN]: R; }>, { [K_1 in SSN]: (arg: R) => void; }>;