UNPKG

338 BTypeScriptView Raw
1import type { TExtend3 } from 'tsfn';
2export 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; }>;