UNPKG

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