Counter.d.ts 247 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 export type CounterType = { get: () => number; set: (n: number) => CounterType; add: (n: number) => CounterType; clone: () => CounterType; }; export declare function Counter(max: number, start: number, loop: boolean): CounterType;