This library without module in defenition, so typescript debugger throw errors. Of course you can use it that way, but it's pretty dirty. Why you don't wraped anychart namespace into typescript module or created @type/anychart?
We can use this code example only after the second compilation.