I\'m converting a js file to ts in WebStorm 2016.2.2.
I had the following snippet:
///
The problem is that any typescript file with top-level import or export becomes a module. See https://github.com/Microsoft/TypeScript/issues/1574