I'm fighting with typescript at a place where it's showing a control flow analysis based error.
while (foo === "apple") {
changeFooToPear()
while (foo === "pear") {
makeFood()
break
}
}
I know that foo is changed to pear... so I'm fighting typescript. I'm here to ask, if typescript is trying to help me write better code, what is the clean solution?