mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-27 19:22:47 +00:00
* Add types for accurate-interval package * Add accurateInterval function callback argument
19 lines
620 B
TypeScript
19 lines
620 B
TypeScript
// Type definitions for accurate-interval 1.0
|
|
// Project: https://github.com/klyngbaek/accurate-interval#readme
|
|
// Definitions by: Artur Dziedziczak <https://github.com/grayrattus>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare function accurateInterval(func: (scheduledTime: number) => void, interval: number, opts: accurateInterval.Opts): accurateInterval.AccurateInterval;
|
|
export = accurateInterval;
|
|
|
|
declare namespace accurateInterval {
|
|
interface Opts {
|
|
aligned: boolean;
|
|
immediate: boolean;
|
|
}
|
|
|
|
interface AccurateInterval {
|
|
clear: () => void;
|
|
}
|
|
}
|