From c8ec85c98ec250db9ab686eb56b64e689f9dbb7c Mon Sep 17 00:00:00 2001 From: Alex Kaminskii Date: Wed, 22 Jun 2022 17:32:29 +0200 Subject: [PATCH] style(tracker): type fix --- tracker/tracker/src/main/app/ticker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracker/tracker/src/main/app/ticker.ts b/tracker/tracker/src/main/app/ticker.ts index 62ca69af9..2a4ee52f7 100644 --- a/tracker/tracker/src/main/app/ticker.ts +++ b/tracker/tracker/src/main/app/ticker.ts @@ -12,7 +12,7 @@ function wrap(callback: Callback, n: number): Callback { } export default class Ticker { - private timer: number | null = null; + private timer: ReturnType | null = null; private readonly callbacks: Array; constructor(private readonly app: App) { this.callbacks = []; @@ -30,7 +30,7 @@ export default class Ticker { start(): void { if (this.timer === null) { - this.timer = setInterval( + this.timer = setInterval( () => this.callbacks.forEach((cb) => { if (cb) cb();