UNPKG

559 BTypeScriptView Raw
1import type { TimerHandle } from './timerHandle';
2declare type SetTimeoutFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;
3declare type ClearTimeoutFunction = (handle: TimerHandle) => void;
4interface TimeoutProvider {
5 setTimeout: SetTimeoutFunction;
6 clearTimeout: ClearTimeoutFunction;
7 delegate: {
8 setTimeout: SetTimeoutFunction;
9 clearTimeout: ClearTimeoutFunction;
10 } | undefined;
11}
12export declare const timeoutProvider: TimeoutProvider;
13export {};
14//# sourceMappingURL=timeoutProvider.d.ts.map
\No newline at end of file