Import and typescript fixups

This commit is contained in:
David Kaltschmidt
2018-04-27 11:49:11 +02:00
parent 1e6e89121c
commit d338b7ea7b
2 changed files with 8 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ const INTERVAL = 150;
export default class ElapsedTime extends PureComponent<any, any> {
offset: number;
timer: NodeJS.Timer;
timer: number;
state = {
elapsed: 0,
@@ -12,7 +12,7 @@ export default class ElapsedTime extends PureComponent<any, any> {
start() {
this.offset = Date.now();
this.timer = setInterval(this.tick, INTERVAL);
this.timer = window.setInterval(this.tick, INTERVAL);
}
tick = () => {