refun
Version:
A collection of React Hook-enabled functions that compose harmoniously with each other. Similar to `recompose`, but:
4 lines (3 loc) • 401 B
TypeScript
import type { MutableRefObject } from 'react';
import type { TExtend3 } from 'tsfn';
export declare const mapStateRef: <SN extends string, SSN extends string, P extends {}, R>(stateName: SN, stateFlusherName: SSN, getValue: (props: P) => R, watchKeys: (keyof P)[]) => (props: P) => import("tsfn").TExtend<import("tsfn").TExtend<P, { [K in SN]: MutableRefObject<R>; }>, { [K_1 in SSN]: () => void; }>;