@panyam/tsutils
Version:
Some basic TS utils for personal use
13 lines (12 loc) • 320 B
TypeScript
type StepFunc = (ts: number) => void;
export declare class Timer {
private refreshInterval;
private lastRefreshAt;
private updateLoop;
stepFunc: StepFunc;
constructor(refreshInterval: number, stepFunc: StepFunc);
stop(): void;
start(): void;
protected kickOffUpdate(): void;
}
export {};