UNPKG

471 BTypeScriptView Raw
1import type { TExtend } from 'tsfn';
2export declare type TSetSafeTimeout = (cb: () => void, delay: number) => () => void;
3export declare const mapSafeTimeoutFactory: (setTimeoutFn: Function, clearTimeoutFn: Function) => <K extends string>(propName: K) => <P extends {}>(props: P) => TExtend<P, { [k in K]: TSetSafeTimeout; }>;
4export declare const mapSafeTimeout: <K extends string>(propName: K) => <P extends {}>(props: P) => TExtend<P, { [k in K]: TSetSafeTimeout; }>;