fix type error

This commit is contained in:
“chrisshank” 2024-12-06 14:14:37 -08:00
parent affa7c1af8
commit 0ed6058139
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export class FolkMetronome extends HTMLElement {
this.addEventListener('click', this);
}
#timeoutId: NodeJS.Timeout | -1 = -1;
#timeoutId: number = -1;
get isPlaying() {
return this.#timeoutId !== -1;
@ -49,7 +49,7 @@ export class FolkMetronome extends HTMLElement {
}
play() {
this.#timeoutId = setInterval(() => {
this.#timeoutId = window.setInterval(() => {
this.#updateBeat(this.#beat + 1);
this.dispatchEvent(new Event('beat'));
}, this.#intervalMs);