The error pops up even before I run the program
it happens when I change
Code: Select all
let _currentState = null;
Code: Select all
let _currentState: ITimerState = null;
Code: Select all
interface ITimerState {
onEnter: () => void;
onUpdate: () => void;
onButtonPress: () => void;
onExit: () => void;
}
This is my first time programming in JS so I don't know if I'm doing something wrong or if this is a JS thing