title: declare global namespace variable from TypeScript
body: <p>How to explicitly declare a variable in the global namespace from typescript?</p>
  
  <p>I need the compiler to generate the following javascript code:</p>
  
  <pre><code>MyExtension = someFunction()
  </code></pre>
  
  <p>unfortunately, I can only have it generate</p>
  
  <pre><code>var MyExtension = someFunction()
  </code></pre>
  
  <p>This comes to an issue with the latest version (still in rc) of meteor packages.
     Meteor introduced a way to scope namespaces in packages - the issue is,  the variable needs to be defined in the global namespace (which meteor reroutes to its own Package object).</p>
  
  <p>There is a video about it at <a href="https://www.eventedmind.com/posts/meteor-linker-package-namespacing">https://www.eventedmind.com/posts/meteor-linker-package-namespacing</a>.</p>
  
  <p>Is there some kind of <code>global</code> keyword available or in the plans?</p>