I am new to TypeScript and I don\'t understand the what I need to do to fix the line that generates the TS7015 error (referencing an enum member using a string variable) bec
var stateName = "Happy" var state = parseInt(State[stateName]);
This is what I had to do to make the compiler happy