UNPKG

282 BTypeScriptView Raw
1import { clearInterval as clearI, setInterval as setI } from 'worker-timers';
2import type { TimerVariant } from './shared';
3export interface Timer {
4 set: typeof setI;
5 clear: typeof clearI;
6}
7declare const getTimer: (variant: TimerVariant) => Timer;
8export default getTimer;