style(tracker): type fix
This commit is contained in:
parent
a4f2191757
commit
c8ec85c98e
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ function wrap(callback: Callback, n: number): Callback {
|
|||
}
|
||||
|
||||
export default class Ticker {
|
||||
private timer: number | null = null;
|
||||
private timer: ReturnType<typeof setInterval> | null = null;
|
||||
private readonly callbacks: Array<Callback | undefined>;
|
||||
constructor(private readonly app: App) {
|
||||
this.callbacks = [];
|
||||
|
|
@ -30,7 +30,7 @@ export default class Ticker {
|
|||
|
||||
start(): void {
|
||||
if (this.timer === null) {
|
||||
this.timer = <any>setInterval(
|
||||
this.timer = setInterval(
|
||||
() =>
|
||||
this.callbacks.forEach((cb) => {
|
||||
if (cb) cb();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue