UNPKG

refun

Version:

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

4 lines (3 loc) 240 B
import type { MutableRefObject } from 'react'; import type { TExtend } from 'tsfn'; export declare const mapRef: <N extends string, T>(name: N, initialValue: T) => <P extends {}>(props: P) => TExtend<P, { [K in N]: MutableRefObject<T>; }>;