UNPKG

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