UNPKG

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