@pushrocks/smarttime
Version:
handle time in smart ways
13 lines (12 loc) • 390 B
TypeScript
export declare class Interval {
status: 'started' | 'stopped' | 'initial';
private statusAuthorization;
intervalMilliseconds: number;
nextIntervalMillisenconds: number;
intervalJobs: Array<() => any>;
constructor(intervalMillisencondsArg: number);
start(): void;
stop(): void;
addIntervalJob(funcArg: () => any): void;
private executeIntervalJobs;
}