UNPKG

refun

Version:

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

5 lines (4 loc) 536 B
import type { TExtend } from 'tsfn'; export declare type TSafeRequestAnimationFrame = (cb: () => void) => () => void; export declare const mapSafeRequestAnimationFrameFactory: (requestAnimationFrameFn: Function, cancelAnimationFrameFn: Function) => <P extends {}, K extends string>(propName: K) => (props: P) => TExtend<P, { [k in K]: TSafeRequestAnimationFrame; }>; export declare const mapSafeRequestAnimationFrame: <P extends {}, K extends string>(propName: K) => (props: P) => TExtend<P, { [k in K]: TSafeRequestAnimationFrame; }>;