Some call it magic -- the ability to make objects appear suddenly out of nowhere. You can create this kind of magic on your website using a few lines of JavaScript ...
Expected behavior: This is valid typescript, and it should parse fine, because the typescript preset should be running. (It's not; see my further commentary below ...