Trying to create a timer loop in TypeScript:
timeout() { setTimeout(function () { console.log(\'Test\'); this.timeout(); }, 1000/60);
Because of this context is lost. Use the arrow function this is better.
timeout() { setTimeout(() => { console.log('Test'); this.timeout(); }, 1000/60); }