I need to work with a legacy library that's plain old javascript, but which I have renamed with a .ts extension so I can gradually refactor it. This is mostly working, but the code does one thing that Typescript doesn't like:
function TestUtil() {}
TestUtil._startTime;
and the Typescript compiler is complaining that Error TS2339 (TS) Property '_startTime' does not exist on type 'typeof TestUtil'.
I cannot find any syntax that will let me indicate that TestUtil should be treated like any, so that I don't get this kind of compilation error. How can I get around this