UNPKG

use-on-demand

Version:
27 lines 774 B
/** * 经过调整的,精确的【Interval定时器】 * * 参考资料: * https://stackoverflow.com/a/44337628/6264260 * */ declare class AdjustingInterval { interval: number; workFunc: () => void; errorFunc?: (() => void) | undefined; expected: number; timeout: number; constructor(interval: number, workFunc: () => void, errorFunc?: (() => void) | undefined); /** * 带绑定上下文 */ _get_step_bind_fn(): () => void; start(): void; stop(): void; step(): void; } export declare class xX_STimer_Helper { static accurateInterval(interval: number, workFunc: () => void, errorFunc?: () => void): AdjustingInterval; } export {}; //# sourceMappingURL=STimer_Helper.d.ts.map