source: imaps-frontend/node_modules/set-harmonic-interval/lib/index.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 459 bytes
RevLine 
[d565449]1export declare type Listener = () => void;
2export declare type ClearHarmonicInterval = () => void;
3export interface Bucket {
4 ms: number;
5 timer: any;
6 listeners: Record<number, Listener>;
7}
8export interface TimerReference {
9 bucket: Bucket;
10 id: number;
11}
12export declare const setHarmonicInterval: (fn: Listener, ms: number) => TimerReference;
13export declare const clearHarmonicInterval: ({ bucket, id }: TimerReference) => void;
Note: See TracBrowser for help on using the repository browser.