I have some javascript code that essentially boils down to something like
let apple: number;
let banana;
eval("apple = 1;");
banana = apple;
Which gives an error like Variable 'apple' is used before being assigned.ts(2454)
Is there a magic incantation I can use to convince typescript that apple is actually assigned? Maybe a chain of as's or something?