To be clear: the above work-around I completely bypasses the isBroken()] call altogether, so I actually don’t know what’s wrong with it, or how to fix it. And as such, have little to report to AtHom about it. I can dive into the call, but given that I’m relative new to TypeScript, I’m not sure if I’m of much help.
Just to be clear: would you accept a pull request for the above work-around, or prefer not to have workaround in the first place? (I can fully understand if you don’t. I’m personally happy ro continue to use my stand-alone script, but if you are, I might spend some time helping others out with the workaround in your code).