coolant
Version:
The modular build radiator
5 lines (4 loc) • 381 B
TypeScript
/// <reference types="node" />
export declare const periodically: (action: () => void | Promise<void>, intervalSeconds?: number) => NodeJS.Timeout;
export declare const periodicallyWithState: <T>(action: (state: T) => T | Promise<T>, initialState: T, intervalSeconds?: number | undefined) => NodeJS.Timeout;
export declare const atTime: (time: string, action: () => void) => void;